security+best practices: root or www-data on a wordpress content folder?

I fixed this by running this command:

    cd /var/www/html/
    sudo chown -Rv www-data:www-data *

Changed ownership back to www-data instead of root. This article helped me:

http://johnqunknown.me/fixing-wordpress-a-mini-tutorial/

Leave a Comment