Closed DesignuDev closed 1 month 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.
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
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.