Last active
September 3, 2024 06:08
-
-
Save richardevcom/7a98f152bc240fdfc8959d83ac239b4c to your computer and use it in GitHub Desktop.
Fix & secure WordPress files & permissions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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