Permission denied for mkdir?
Moderator: General Moderators
-
pyromaster114
- Forum Newbie
- Posts: 19
- Joined: Fri Mar 14, 2008 8:12 pm
Permission denied for mkdir?
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?
Are you trying to write the directories above or below the document root?
-
pyromaster114
- Forum Newbie
- Posts: 19
- Joined: Fri Mar 14, 2008 8:12 pm
Re: Permission denied for mkdir?
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...
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?
Is this on a server you manage or a shared server you lease?
-
pyromaster114
- Forum Newbie
- Posts: 19
- Joined: Fri Mar 14, 2008 8:12 pm
Re: Permission denied for mkdir?
A shared, leased server.
The scripts work on all the servers I manage... but not the server I'm trying to put it on...
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?
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