permission denieds

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

Post Reply
psychotomus
Forum Contributor
Posts: 487
Joined: Fri Jul 11, 2003 1:59 am

permission denieds

Post by psychotomus »

mkdir("temp",750);

gives me this error

Warning: MkDir failed (Permission denied) in /home/virtual/site205/fst/var/www/html/test.php on line 3

how can I fix this problem?
User avatar
pthomas
Forum Commoner
Posts: 68
Joined: Wed Jan 19, 2005 11:28 am
Location: Cincinnati, OH

Post by pthomas »

Give the user that the command is running under full rights to the

Code: Select all

/home/virtual/site205/fst/var/www/html/
folder. I'd wager you need to give apache access to make a folder in that directory.

Keep in mind that just because you make a webpage that makes a directory an you as a user can read/write/delete items in that dir, the php webpage doesn't run under your account. It normally runs under "apache" or something similar.

Paul
Post Reply