PHP &Apache Upload file Permission denied
| From: | Michael Leung | Date: | Mon, 13 Dec 2004 00:46:33 +0000 |
| Subject: | PHP &Apache Upload file Permission denied | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-204123@lists.php.net to get a copy of this message | ||
Hi all,
I have faced the upload file permission denied for weeks. I can't
write a new file/create a directory. I did a test in PHP standalone
(Linux shell). The operation is very normal.
But in web environment, I got this error message:
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to
move '/tmp/phpjsLZfC' to '/var/www/htm/test/icons.zip' in
/var/www/html/simple_upload.php on line 76.
I think this is a problem bewteen Apache and PHP. The safe mode of PHP
is off and test directory is changed to 777.
yours,
Michael