WP Folder permission command

Below is the best WP folder permissions to be used on shared hosting

sudo find . -type f -exec chmod 664 {} +
sudo find . -type d -exec chmod 775 {} +
sudo chmod 660 wp-config.php

If the site stops working after chaining this change the wp-config.php to 644


Posted

in

, , , ,

by