failed to open directory...

Linux related discussion about netjukebox
Post Reply
f0rc3d

failed to open directory...

Post by f0rc3d » Fri Jun 21, 2013 10:21 am

hello, im a new newuser of netjukebox
and the following is the issue i am having when trying to update,
can anyone PLEASE HELP! :)

this is how i have the config.inc.php set...
Image
my "music" directory is chmod to 777

and here is the error i am getting...
Image

User avatar
wbartels
netjukebox developer
Posts: 792
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: failed to open directory...

Post by wbartels » Fri Jun 21, 2013 11:03 am

I think the web server doesn't have enough privileges to access this directory.
The web server user (www-data on Ubuntu) must have read and write access to this directory!

For example give yourself (f0rc3d) and the web server read and write access:

Code: Select all

chown -R f0rc3d:www-data /music/
chmod -R 664 /music/
Or give everyone read and write access:

Code: Select all

chmod -R 666 /music/
For more info over filepermission take a look here:
https://help.ubuntu.com/community/FilePermissions

User avatar
wbartels
netjukebox developer
Posts: 792
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: failed to open directory...

Post by wbartels » Fri Jun 21, 2013 11:11 am

Sorry, now I see you already have used chmod 777.
Did you use the -R switch?

wrath
User
Posts: 2
Joined: Thu Jan 16, 2014 3:22 am

Re: failed to open directory...

Post by wrath » Thu Jan 16, 2014 10:18 pm

i am facing the same issue,
1. i am setting the address of folder in config file : /domains/wrath.ir/public_html/music/ something like this
2.i am giving the /music/ folder permissions 777
3.i am using directadmin v1.43 as a host manager
can you help me please ? i have about zero info about linux operating systems

User avatar
wbartels
netjukebox developer
Posts: 792
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: failed to open directory...

Post by wbartels » Thu Jan 16, 2014 10:40 pm

wrath wrote:i am facing the same issue,
1. i am setting the address of folder in config file : /domains/wrath.ir/public_html/music/ something like this
2.i am giving the /music/ folder permissions 777
3.i am using directadmin v1.43 as a host manager
can you help me please ? i have about zero info about linux operating systems
If you use /domains/wrath.ir/public_html/music/ you shoud set permission 777 to /domains/wrath.ir/public_html/music/ and not to /music/

wrath
User
Posts: 2
Joined: Thu Jan 16, 2014 3:22 am

Re: failed to open directory...

Post by wrath » Thu Jan 16, 2014 10:48 pm

thanks for the reply
i did not quite undrestand what do you mean,so i have to give each folder 777 permission like give /domains/ 777 /wrath.ir/777 and so on ?

Post Reply