Skip to content

Instantly share code, notes, and snippets.

@cadavre
Created February 11, 2014 14:57
Show Gist options
  • Save cadavre/8936367 to your computer and use it in GitHub Desktop.
Save cadavre/8936367 to your computer and use it in GitHub Desktop.
Sf2-fix-perms.sh
sudo rm -rf app/cache/*
sudo chmod 777 -Rf app/cache/*
sudo chmod 777 -Rf app/logs/*
sudo setfacl -R -m u:www-data:rwX -m u:`whoami`:rwX app/cache app/logs
sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs
app/console cache:clear --no-warmup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment