Created
June 27, 2016 03:07
-
-
Save chinmayrajyaguru/949984f43f884218f99c99c8fc0e0ca8 to your computer and use it in GitHub Desktop.
Proper WordPress Filesystem Permissions And Ownerships
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
#I Recommend | |
sudo find . -type d -exec chmod 755 {} \; #for all directories | |
sudo find . -type f -exec chmod 644 {} \; #for all files | |
sudo chmod 444 wp-config.php #change permission for this file only! | |
# For nginx users /var/www/html/ | |
sudo chmod 444 wp-config.php | |
sudo chmod 444 nginx.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment