Setting up a VPS as a web server.

SBSP

Senior Member
Joined
Sep 7, 2007
Messages
667
Reaction score
16
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.
 
... and inexpensive to boot.
Oh yeah. Welcome to the reset club. Have done that myself :D
 
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 got burnt using Webmin, well it was a theme in Webmin that had a vulnerability that compromised the entire system.

After that I've never touched it again.
 
I have found that webmin is best installed from the beginning. so before you install LAMP or anything else get wevmin loaded first.

I can't recall as it has been a while but I think webmin has its own version of LAMP or it installs it again and that could be why your install broke.

also used digital ocean tutorials at the time.
 
Top
Sign up to the MyBroadband newsletter
X