PHP mkdir permission denied

BertenB

New member
Joined
Feb 9, 2016
Messages
2
When I try to upload an album (folder containing pictures). The code that runs for generating the thumbnails (should) create a folder "thumbs". But I get permission denied. Is it possible to change the default permission on directories? Since I dont want to change these manually!

Thanks in advance!!
 
That all depends if you are a user (customer), reseller or admin. If you are a customer you should contact your host.
Normally directory's should be chmod 755, this also depends on if you are running mod_ruid2 or suphp or something else.
So it's hard to answer this without a bit more information.
 
That all depends if you are a user (customer), reseller or admin. If you are a customer you should contact your host.
Normally directory's should be chmod 755, this also depends on if you are running mod_ruid2 or suphp or something else.
So it's hard to answer this without a bit more information.

I am the one who developed the website and has access to the control panel, so I think i'm admin :) And yes my directories are 755 by default.
 
Yes, but are you running mod_ruid or suphp?
If yes, the script should be executed as the user to be able to make it.
Try using 777 on the directory and see if it works in that case. Don't keep it that way, just use it to check.
Did you also check the error logfiles?
 
Back
Top