Avoiding 777 Permissions

This is post is now quite old and the the information it contains may be out of date or innacurate.

If you find any errors or have any suggestions to update the information please let us know or create a pull request on GitHub

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/