File upload permission errors
Posted: Mon Oct 22, 2007 5:19 pm
I get two warnings when attempting to upload a file to the images directory in the DocumentRoot for a virtual host in Apache2:
I have searched for information on the permission errors and how to avoid them but keep going round in circles. Any help on this much appreciated.
Warning: move_uploaded_file(/home/vsftpd/nameofsite/www/images/icon1.gif) [function.move-uploaded-file]: Failed to open stream: Permission denied...
The DocumentRoot is set to /home/vsftpd/nameofsite/www.Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/php6oPKJ2' to '/home/vsftpd/nameofsite/www/images/icon1.gif'...Error: could not move file to destination directory
I have searched for information on the permission errors and how to avoid them but keep going round in circles. Any help on this much appreciated.