Fixing WordPress permissions

In your WordPress directory, run the following:

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

This should fix all your WordPress woes relating to permissions

Leave a Reply

Your email address will not be published. Required fields are marked *