# Install nginx... # Backup the etc/nginx folder to another folder... $ sudo cp -r /etc/nginx/ /etc/nginx_Backups/ # Install PHP 8.5... and then Back it up... $ sudo cp -r /etc/php/8.5/ /etc/php/85_Backups/ # Now, Copy the docs folder into the System paths... $ sudo cp -r /var/www/mygoals/protected/docs/var/www/errors/ /var/www/errors/ $ sudo cp /var/www/mygoals/protected/docs/etc/php/8.5/php.ini /etc/php/8.5/ $ sudo cp /var/www/mygoals/protected/docs/etc/php/8.5/fpm/pool.d/www.conf /etc/php/8.5/pool.d/ $ sudo cp -r /var/www/mygoals/protected/docs/etc/nginx/ /etc/nginx/ # Fix PERMS... $ sudo chown -R $USER:www-data /var/www/errors $ sudo chown -R root:root /etc/php/ $ sudo chown -R root:root /etc/nginx/ # Setup goals site $ sudo ln -s /etc/nginx/sites-available/goals /etc/nginx/sites-enabled/ $ cd /etc/nginx # If on a developers computer NOT Cloud or LIVE, then make local CERTS $ ./make_localhost_CERTs.sh # Test nginx Config files for Errors first: $ nginx -t $ sudo service nginx status # start or restart $ sudo service nginx start $ sudo service php8.5-fpm status # start or restart $ sudo service php8.5-fpm start