Skip to content

Instantly share code, notes, and snippets.

@matteocaberlotto
Last active December 17, 2015 18:28
Show Gist options
  • Save matteocaberlotto/5652919 to your computer and use it in GitHub Desktop.
Save matteocaberlotto/5652919 to your computer and use it in GitHub Desktop.
Symfony cache/log folders permissions setup
# chmod
chmod +a "_www allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
chmod +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
# setfacl
setfacl -R -m u:www-data:rwX -m u:`whoami`:rwX app/cache app/logs
setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment