PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
patrikG
DevNet Master
Posts: 4235 Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK
Post
by patrikG » Fri Feb 21, 2003 6:57 pm
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?
volka
DevNet Evangelist
Posts: 8391 Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger
Post
by volka » Fri Feb 21, 2003 7:55 pm
it's most likely not a setting in php but a problem with filesystem permissions.
patrikG
DevNet Master
Posts: 4235 Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK
Post
by patrikG » Fri Feb 21, 2003 9:37 pm
Sorry wasn't clear in what my problem was: which parameter in php.ini must I set or change to allow that?
lazy_yogi
Forum Contributor
Posts: 243 Joined: Fri Jan 24, 2003 3:27 am
Post
by lazy_yogi » Fri Feb 21, 2003 10:08 pm
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
patrikG
DevNet Master
Posts: 4235 Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK
Post
by patrikG » Sat Feb 22, 2003 6:53 am
Ooops. I was sure I had set chmod to 775. In fact it was set to 755...
Thanks