can i run wp as root permissions

WordPress and Apache
WordPress needs to be able to use Apache. By default Apache runs on Ubunutu as user www-data. And … www-data is also a member of the group www-data

So when you try to do a Git Pull then every file will have the wrong permissions as it’s expecting the owner to be able to run things on Apache.

If you do a CHOWN to make everything under your ‘/wordpress’ directory to be owned by www-data everything should be fixed … run this command:

sudo chown -R www-data:www-data /wordpress

You’ll need to run this command as sudo. And you may need to check your permissions on folders under wp-content

Leave a Comment