Page 1 of 1
Permission denied for mkdir?
Posted: Wed Mar 26, 2008 5:38 pm
by pyromaster114
I have a script that is supposed to create a bunch of directories and stuff... but I get permission errors when it runs... I changed the parent directory permission to 777 even and it STILL gives me an error...
Re: Permission denied for mkdir?
Posted: Wed Mar 26, 2008 5:46 pm
by hawleyjr
Are you trying to write the directories above or below the document root?
Re: Permission denied for mkdir?
Posted: Wed Mar 26, 2008 6:38 pm
by pyromaster114
Well... technically... both... i guess...
The directory tree looks like this:
/root/
|
|-/admin/
| |
| |-script.php
|
|-/projects/
| |
| |-<directories being created go here>
|
|-otherstuff.php
|
|-etc
So yeah... I'm not sure if that counts as above or below...
I also tried a simple script to check something... i just told it to make a directory on the level of the script...
/root/
|
|-Script.php
|-/newfolder/
that didn't work either...
Re: Permission denied for mkdir?
Posted: Wed Mar 26, 2008 8:17 pm
by hawleyjr
Is this on a server you manage or a shared server you lease?
Re: Permission denied for mkdir?
Posted: Wed Mar 26, 2008 8:55 pm
by pyromaster114
A shared, leased server.
The scripts work on all the servers I manage... but not the server I'm trying to put it on...
Re: Permission denied for mkdir?
Posted: Thu Mar 27, 2008 11:08 am
by hawleyjr
pyromaster114 wrote:A shared, leased server.
The scripts work on all the servers I manage... but not the server I'm trying to put it on...
This may be due to an anal admin who is managing the shared server.
More Information:
http://us2.php.net/features.safe-mode