Page 1 of 1

permission denieds

Posted: Mon Jan 31, 2005 2:42 pm
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?

Posted: Mon Jan 31, 2005 3:08 pm
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