Skip to content

Instantly share code, notes, and snippets.

@DavidHernandez
Created November 13, 2014 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidHernandez/08bd081c77066d91bfc4 to your computer and use it in GitHub Desktop.
Save DavidHernandez/08bd081c77066d91bfc4 to your computer and use it in GitHub Desktop.
Fix Drupal permissions
// Replace [data] with correct data.
sudo chown [user]:www-data [buildpath] -R
sudo chmod u-x,g-x [buildpath] -R
sudo chmod u=rwX,g=rX,o= [buildpath] -R
sudo chmod 2770 [files]
sudo chown www-data:www-data [files] -R
sudo chmod u=rwX,g=rwX,o= [files] -R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment