Skip to content

Instantly share code, notes, and snippets.

@irazasyed
Last active August 29, 2015 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save irazasyed/10677614 to your computer and use it in GitHub Desktop.
Save irazasyed/10677614 to your computer and use it in GitHub Desktop.
Shell: Fix File permissions WordPress
#!/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