PHP/Apache: Permission settings for uploaded JPEG image files not correct.
Posted
by Mike
on Stack Overflow
See other posts from Stack Overflow
or by Mike
Published on 2010-05-16T20:24:30Z
Indexed on
2010/05/16
21:00 UTC
Read the original article
Hit count: 328
I just setup a LAMP development server and am still trouble-shooting some things. The server is installed on one computer and I use a Windows laptop to write my code and test the site via the web browser.
My file uploading script works in that JPEG image files are successfully uploaded to the server, but when I try to view the images in the web browser, permission is denied.
I check the permissions on the file via the server and they are 600
. I can fix the issue by chmod 777 theimage.jpg
, but this doesn't seem like a good solution at all.
Does the solution have something to do with Apache configuration? Or is there something else I should be doing.
Thank-you, Mike
© Stack Overflow or respective owner