Skip to content

Instantly share code, notes, and snippets.

@richardevcom
Last active September 3, 2024 06:08
Show Gist options
  • Save richardevcom/7a98f152bc240fdfc8959d83ac239b4c to your computer and use it in GitHub Desktop.
Save richardevcom/7a98f152bc240fdfc8959d83ac239b4c to your computer and use it in GitHub Desktop.
Fix & secure WordPress files & permissions
chown -R www-data:www-data .
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
chmod 440 .htaccess wp-config.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment