Last active
August 29, 2015 14:23
-
-
Save marinhero/00a498e3baafc895b097 to your computer and use it in GitHub Desktop.
Wordpress permissons
This file contains 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 | |
USER=$1 | |
find /home/$USER/public_html/ -type f -exec chmod 644 {} + | |
find /home/$USER/public_html/ -type d -exec chmod 775 {} + | |
chmod 640 /home/$USER/public_html/wp-config.php | |
chgrp -R www-data /home/$USER/public_html/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment