Skip to content

Instantly share code, notes, and snippets.

@kauffmanes
Last active December 11, 2017 12:41
Show Gist options
  • Save kauffmanes/702a7f5ddf3de2fba6f90d13f7fe991f to your computer and use it in GitHub Desktop.
Save kauffmanes/702a7f5ddf3de2fba6f90d13f7fe991f to your computer and use it in GitHub Desktop.
Setting folder and file permissions for a Wordpress site
#!/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