Web Stuff 03.09.2015 6737
Virtualmin is free and licensed under the GPL license, with Virtualmin you can run your own hosting environment and have control over your own settings, all of it.
But why should you do it? Well first you will have all the power for yourself. Means what you choose you will get with many managed hosting companies you will share your server with thousands of other customers usually not really secure and if someone hacks your neighbour WordPress your account is most of the time compromised as well. With virtualmin you can run at least 10 busy websites on a 1gb machine and you are the boss over all your virtual servers, emails, accounts, statistics plus your environment is safe against neighbours thanks to 100% KVM Virtualization.
The installation is fairly easy, however a few steps are necessary before we dig into the ssh console.
First you will need a domain name, you can get a domain with alot of resellers, I prefer namecheap because it is priced fair and easy to setup nameservers.
Let's start with signing up (if not already). Choose a provider you like, doesn't matter which one and both usually give you up to 25 USD bonus when you start with them. Both providers (there are many more) provide different locations and packages, choose the one close to you and your website visitors, means it doesn't make sense to choose a server in Sydney when you live in Madrid, always choose the closest one.
After register go to your account settings and add your ssh key from your local machine. SSH Keys are only available for Linux servers, but we won't use any Windows server for now. Let's create a SSH Key on your local machine.
Now we have a SSH Key for your local machine but what can I do with it and what does it mean? The SSH key is identification for your local machine, means a very strong password but you don't have to enter and remember the key. When you connect to your server your local machine will send your very strong password (ssh key) to authorize the access, only your local machine will have access to your future server, makes it very secure for the ssh end.
We are now ready to create a vps, quick hey!
Now this will take a couple of minutes you will receive an email when your server is ready! Congratulations you just created your first virtual server, already pretty secure because only your local machine can connect to this vps via SSH!
After your server is up and running, open your terminal and type:
You will be asked to trust this this server, type yes. You are now connected to your new server, how easy was that? Now we should run a few tasks to set utf-8 to standard, update your vps and set the hostname. In your terminal run each line below, do not copy all of it, just one by one.
hostnamectl set-hostname srv1.yourdomain.com
sudo locale-gen UTF-8
Because we have rebooted the server you will be disconnected from the server. Connect again and now we are ready to install virtualmin, again run only one line at the time.
chmod +x install.sh
Follow the onscreen instructions, it will take about 5 minutes to install webmin and virtualmin on your server. When it is finished you can login via browser to your new webserver running on Ubuntu 14.04.
Open your preferred browser and go to:
Login with your root account, the password can be found in the email that has been sent to you after the server has been created or in your server dashboard on vultr.
In part 2 we will go through the virtualmin and webmin configuration secure your server and webmin even further and setup your first domain.