Skip to content

Instantly share code, notes, and snippets.

@PieterScheffers
Last active December 21, 2015 12:08
Show Gist options
  • Select an option

  • Save PieterScheffers/9a897e722f1547569bc6 to your computer and use it in GitHub Desktop.

Select an option

Save PieterScheffers/9a897e722f1547569bc6 to your computer and use it in GitHub Desktop.
Wordpress File Permissions
# https://premium.wpmudev.org/blog/understanding-file-permissions/
# http://www.smashingmagazine.com/2014/05/proper-wordpress-filesystem-permissions-ownerships/
# Change directory permissions to 755 (d, rwx, r-x, r-x)
sudo find . -type d -exec chmod 755 {} +
find /path/to/your/wordpress/ -type d -exec chmod 755 {} \;
# Change file permissions to 644 (-, rw-, r--, r--)
sudo find . -type f -exec chmod 644 {} +
find /path/to/your/wordpress/ -type f -exec chmod 644 {} \;
# Change wp-config.php permission to 600 (-, rw-, ---, ---)
sudo chmod 600 wp-config.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment