Our blog
Avoiding 777 Permissions
If you need to be able to write to a folder with PHP but you do not want to have to use 777 permissions then instead you have the option to use access control lists.
This simple command will allow you to give permissions to Apache only, whilst keeping the standard permissions secure (eg 770)
-
setfacl -m u:apache:rwx directory/
RSS Feed