On Thu, Sep 17, 2009 at 1:27 PM, I. Ati
<mueni0@gmail.com> wrote:
i have a folder i have created in
/var/www/
called uploads
in my serve(fedora) .....this folder i want to put my uploaded content from my web service .......
i have done the following:
su
chown githinji/var/www/uploads
This command did not complete with 0 status exit code as you need a space there, so something like:
chown githinji [space] /var/www/uploads
but i keep getting the following error when trying to upload content to the server
Warning: move_uploaded_file(/var/www/uploads/song_1253182839.PNG) [function.move-uploaded-file]: failed to open stream: Permission denied in /var/www/html/tes/jamms6/library/Music.php on line 46
Looks to me like the issue is actually about the permissions on
/var/www/html/.. and not /var/www/uploads unless the two are symlinks.
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpNwzvTj' to '/var/www/uploads/song_1253182839.PNG' in /var/www/html/tes/jamms6/library/Music.php on line 46
Unable to upload song
My suggestion to you, if acceptable, is to run an FTP server which
chroot()s the users to their designated upload directory and let them
upload via FTP.