Skip to content

Instantly share code, notes, and snippets.

@FesoVel
Created April 9, 2019 13:01
Show Gist options
  • Save FesoVel/76b7222e07d70aef744333d3e1701dc3 to your computer and use it in GitHub Desktop.
Save FesoVel/76b7222e07d70aef744333d3e1701dc3 to your computer and use it in GitHub Desktop.
Set proper WordPress file system permissions.
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