Skip to content

Instantly share code, notes, and snippets.

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 chinmayrajyaguru/949984f43f884218f99c99c8fc0e0ca8 to your computer and use it in GitHub Desktop.
Save chinmayrajyaguru/949984f43f884218f99c99c8fc0e0ca8 to your computer and use it in GitHub Desktop.
Proper WordPress Filesystem Permissions And Ownerships
#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