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

We need to figure out how to store the websites on the user dir #6

Closed DesignuDev closed 1 month ago

DesignuDev commented 4 months ago

Install nginx like normal, make sites avail the default like we already do

Instead of pointing config files to www, point to /home/username/sites/ instead

Update chmod -R 755 /home/username/

Make sure that SSH folder is chmod 700 and keys are 600

still need to do some tweaking to perms, had to change owner to www-data to successfully run the wp site

and then .git folder needs to have username as owner so it can successfully lock files etc.

DesignuDev commented 4 months ago

Change user that nginx runs under to username

/etc/nginx/nginx.conf

Change user that php runs under to username

/etc/php/7.4/fpm/pool.d/www.conf