Skip to content

Instantly share code, notes, and snippets.

@mtrl
Created April 11, 2016 10:35
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 mtrl/3d42fdf5127f4abb950dbf21c1db601c to your computer and use it in GitHub Desktop.
Save mtrl/3d42fdf5127f4abb950dbf21c1db601c to your computer and use it in GitHub Desktop.
WordPress permissions for update
sudo chown www-data:www-data -R *
sudo find . -type f -exec chmod 775 {} \; # Change file permissions
sudo find . -type d -exec chmod 775 {} \; # Change file permissions
# Switch them back to the correct permissions:
sudo find . -type f -exec chmod 755 {} \; # Change file permissions
sudo find . -type d -exec chmod 644 {} \; # Change file permissions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment