Skip to content

Instantly share code, notes, and snippets.

@ceessay
Created August 29, 2019 00:06
Show Gist options
  • Save ceessay/e6b0449b9ded736c7dbd3bbdfa9c80b8 to your computer and use it in GitHub Desktop.
Save ceessay/e6b0449b9ded736c7dbd3bbdfa9c80b8 to your computer and use it in GitHub Desktop.
https://stackoverflow.com/questions/18352682/correct-file-permissions-for-wordpress
chown www-data:www-data -R * # Let Apache be owner
find . -type d -exec chmod 755 {} \; # Change directory permissions rwxr-xr-x
find . -type f -exec chmod 644 {} \; # Change file permissions rw-r--r--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment