Last active
December 21, 2015 12:08
-
-
Save PieterScheffers/9a897e722f1547569bc6 to your computer and use it in GitHub Desktop.
Wordpress File Permissions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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