I'm hosting a LAMP EC2 instance via Amazon AWS.
Part of my website allows users to upload files. Unfortunately, the server is not able to store permanent copies in the "uploads" folder because it is lacking necessary permissions.
A PHP script is called that will store a file to the "uploads" folder. The upload will fail while the upload folder has standard 755
and 775
permissions. However, when i change the folder permissions to 777
(world permissions), it works.
For obvious reasons, I don't want to use 777
world permissions. How can i make it so that the server has permission to write files to the "uploads" folder?
Thanks guys.