Symfony2 setfacl Commands for Nginx

Published on Author craigzearfossLeave a comment

Since Nginx does not support chmod +a you will need to run setfacl to give the app/cache, app/logs and other directories the proper permissions.

sudo setfacl -R -m u:www-data:rwX -m u:`whoami`:rwX app/cache app/logs  web/sitemaps
sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs  web/sitemaps

Reference:

Leave a Reply

Your email address will not be published. Required fields are marked *