Last active
August 29, 2015 13:59
-
-
Save irazasyed/10677614 to your computer and use it in GitHub Desktop.
Shell: Fix File permissions WordPress
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 | |
####################################### | |
## FIX FILE PERMISSIONS FOR WP SETUP ## | |
####################################### | |
find ./public -type d -exec chmod 755 {} \; | |
find ./public -type f -exec chmod 644 {} \; | |
chown -R nginx:nginx public | |
## Execute: | |
## $ wget https://gist.githubusercontent.com/irazasyed/10677614/raw/b237542b24f5eba41505d6b543e285738ad6ada0/fix_fp.sh && bash fix_fp.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment