icarus-gg / linux-LEMP-ubuntu-22

quick setup for a linux vm running php 7.4, nginx, mysql and wordpress
MIT License
0 stars 1 forks source link

Adding the website files through sudo git makes all files root access only #2

Closed DesignuDev closed 1 month ago

DesignuDev commented 4 months ago

Wordpress runs as www-data user by default

Fixed by running following command inside /var/www/ folder:

sudo chown -R www-data:www-data .