Skip to content

Instantly share code, notes, and snippets.

@rileypaulsen
Last active July 6, 2016 03:12
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 rileypaulsen/50d53b492d431ef3e1de to your computer and use it in GitHub Desktop.
Save rileypaulsen/50d53b492d431ef3e1de to your computer and use it in GitHub Desktop.
Set correct file permissions for WordPress. Must be run from the root of the WP directory.
sudo chown -R www-data:www-data .
sudo find . -type f -exec chmod 664 {} +
sudo find . -type d -exec chmod 775 {} +
sudo chmod 660 wp-config.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment