Last active
December 11, 2017 12:41
-
-
Save kauffmanes/702a7f5ddf3de2fba6f90d13f7fe991f to your computer and use it in GitHub Desktop.
Setting folder and file permissions for a Wordpress site
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
#!/bin/bash | |
#folders | |
sudo find <dir> -type d -exec chmod 755 {} \; | |
#files | |
sudo find <dir> -type f -exec chmod 644 {} \; | |
#wp-config | |
sudo chmod 600 wp-config.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment