Skip to content

Instantly share code, notes, and snippets.

@phpmypython
Last active December 24, 2016 06:27
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save phpmypython/101ddabe867080dbfbea to your computer and use it in GitHub Desktop.
Save phpmypython/101ddabe867080dbfbea to your computer and use it in GitHub Desktop.
WordPress Permissions
find . -type f -name "wp-config-sample.php" -o -name "readme.html" -o -name "README.txt" -o -wholename "wp-admin/install.php" -exec rm -f {} \; &&
find . -type d -exec chmod 0755 {} \; &&
find . -type f -exec chmod 0755 {} \; &&
find . -name "wp-config.php" -exec chmod 600 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment