I recently got my self a linux VPS, before starting to install the LAMP stack i wanted to run more than one site of the same IP right off the bat.
I found some awesome installation tutorials with security in mind on digitalocean.com.
Install Apache, PHP, MySQL, PhpmyAdmin
https://www.digitalocean.com/commun...x-apache-mysql-php-lamp-stack-on-ubuntu-16-04
Setup 2 virtual hosts, In my case I only had one but soon will be moving all my hosting to the VPS..
https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-16-04
Configure Apache to make use of SSL (Let's Encrypt)
https://www.digitalocean.com/commun...ure-apache-with-let-s-encrypt-on-ubuntu-16-04
Install PHPMyAdmin
https://www.digitalocean.com/commun...install-and-secure-phpmyadmin-on-ubuntu-16-04
For what I want I dont see the point in paying normal linux web hosting anymore when I can do everything my self. Paying for a VPS sometimes makes it cheaper and you are not limited to 5 or so MySQL databases ect. I pay $10 for 2 TB bandwidth, 80GB disk space and the VPS has 2GB memory.
Takes some discipline to not play around though
I had all of this working untill i tried to install webmin, and it messed up all of the apache configuration and had to reset the VM.
I found some awesome installation tutorials with security in mind on digitalocean.com.
Install Apache, PHP, MySQL, PhpmyAdmin
https://www.digitalocean.com/commun...x-apache-mysql-php-lamp-stack-on-ubuntu-16-04
Setup 2 virtual hosts, In my case I only had one but soon will be moving all my hosting to the VPS..
https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-16-04
Configure Apache to make use of SSL (Let's Encrypt)
https://www.digitalocean.com/commun...ure-apache-with-let-s-encrypt-on-ubuntu-16-04
Install PHPMyAdmin
https://www.digitalocean.com/commun...install-and-secure-phpmyadmin-on-ubuntu-16-04
For what I want I dont see the point in paying normal linux web hosting anymore when I can do everything my self. Paying for a VPS sometimes makes it cheaper and you are not limited to 5 or so MySQL databases ect. I pay $10 for 2 TB bandwidth, 80GB disk space and the VPS has 2GB memory.
Takes some discipline to not play around though