Page 1 of 1
mkdir() failed (Permission denied)
Posted: Fri Feb 21, 2003 6:57 pm
by patrikG
Hi all,
when I do a mkdir() on one of my websites, I get
" mkdir() failed (Permission denied) "
Does anyone know which parameter needs to be set to allow PHP to create directories?
Posted: Fri Feb 21, 2003 7:55 pm
by volka
it's most likely not a setting in php but a problem with filesystem permissions.
Posted: Fri Feb 21, 2003 9:37 pm
by patrikG
Sorry wasn't clear in what my problem was: which parameter in php.ini must I set or change to allow that?
Posted: Fri Feb 21, 2003 10:08 pm
by lazy_yogi
if ur on linux .. you need to do from the command line :
chmod a+rx script.php (where script.php is where u call mkdir from.)
if that doesnt work, try
chmod a+rwx script.php
Posted: Sat Feb 22, 2003 6:53 am
by patrikG
Ooops. I was sure I had set chmod to 775. In fact it was set to 755...
Thanks
