Symfony permissions on Ubuntu
2.*
sudo setfacl -Rn -m u:www-data:rwX -m u:`whoami`:rwX app/cache app/logs
sudo setfacl -dRn -m u:www-data:rwX -m u:`whoami`:rwX app/cache app/logs
sudo chown -R :www-data app/cache app/logs
sudo chmod g+ws app/cache app/logs
sudo setfacl -dR -m g::rwX app/cache app/logs
3.*
sudo setfacl -Rn -m u:www-data:rwX -m u:`whoami`:rwX var/
sudo setfacl -dRn -m u:www-data:rwX -m u:`whoami`:rwX var/
sudo chown -R :www-data var/
sudo chmod -R g+w var/
sudo chmod g+ws var/
sudo setfacl -dR -m g::rwX var/