Skip to content

Instantly share code, notes, and snippets.

@itsmikita
Last active December 18, 2023 23:20
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 itsmikita/1289a76357b1a0dea5e7ce15a9518596 to your computer and use it in GitHub Desktop.
Save itsmikita/1289a76357b1a0dea5e7ce15a9518596 to your computer and use it in GitHub Desktop.
WordPress file permissions

WordPress file permissions

sudo chown www-data:www-data  -R *          # Let Apache be the owner
sudo find . -type d -exec chmod 755 {} \;   # Change directory permissions (rwxr-xr-x)
sudo 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