Skip to content

Instantly share code, notes, and snippets.

@joanteixi
Last active December 27, 2015 15:09
Show Gist options
  • Save joanteixi/7345037 to your computer and use it in GitHub Desktop.
Save joanteixi/7345037 to your computer and use it in GitHub Desktop.
symfony permissions
APACHEUSER=`ps aux | grep -E '[a]pache|[h]ttpd' | grep -v root | head -1 | cut -d\ -f1`
sudo chmod +a "$APACHEUSER allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
sudo chmod +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
or...
umask(0002) or umask(0000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment