These are just some files/scripts/snippets I've found broadly useful in managing my VPSes.
I keep update.sh in my root home folder and generally run it as cd ~ && yes | ./update.sh.
It is necessary to chmod +x this file before use.
The apache2.conf file goes in your /etc/apache2/sites-available folder, edited to reflect your domain (ServerName) and file location (DocumentRoot and so on). (I recommend renaming it to [domain].conf.)
You then must run a2ensite [domain].conf to enable it, and then systemctl reload apache2 (or however your particular system reloads apache).
(If it is not obvious, you must have apache installed for apache2.conf to be of any use to you. There is a different syntax for nginx site configuration files, but I haven't used nginx in a long time just bc I prefer apache personally. You can find config steps for nginx here if you need.)