I want to show you how easy it is to get Virtualmin installed on Ubuntu Server 20.04. I’ll be installing the Community Edition, but the process for installing the Virtualmin Professional Edition is the same. I do recommend installing the Community Edition first, to see if this tool is the right fit for your needs.
The first thing to do is update and upgrade the server software. One thing to remember, if the kernel is upgraded, you’ll need to reboot the server. Because of this, make sure to run the update/upgrade at a time when a reboot is feasible.
To update/upgrade Ubuntu, log in to the server and issue the commands:
sudo apt-get update sudo apt-get upgrade -y
When this completes, reboot the server (if necessary) and log back in.
Virtualmin wants a fully qualified domain name. That doesn’t mean you have to change your server’s hostname to an FQDN. For example (and we’ll stick with the example.com domain): Let’s say you want to use a shorter hostname, like virtualmin. You can do that, and then map the shorter name to the FQDN.
Set the hostname with the command:
sudo hostnamectl set-hostname virtualmin
The above example sets the hostname to virtualmin. Log out and log back in for the changes to take effect.
Next, map virtualmin to virtualmin.example.com in the hosts file. Open that file for editing with the command:
sudo nano /etc/hosts
At the bottom of that file, add a line like this:
192.168.1.211 virtualmin.example.com virtualmin
Make sure to exchange the information above to reflect that of your IP, FQDN, and hostname.
Save and close the file.
The developers of Virtualmin have created a very handy installation script. Download that script to the server with the command:
Run the script with the command:
sudo bash install.sh
When prompted, type y to continue (Figure A).
If you’ve set the hostname properly, the installation will begin, otherwise, you’ll have to manually type the FQDN of the server before the actual install proceeds. The installation will take between 10 and 30 minutes, depending on the speed of your hardware and network connection (Figure B).
When the installation completes, you can open a web browser and either point it to https://FQDN:10000 (where FQDN is the actual fully qualified domain name) or https://IP:10000 (where IP is the IP address of the server).
You’ll be prompted to log in with an account that has sudo privileges. Upon successful authentication, you’ll find yourself at the Virtualmin post-installation wizard, where you can tune the installation to better meet your needs (Figure C).
The post-install wizard allows you to tune things like:
Congratulations, you now have the Virtualmin web hosting and cloud computing control panel up and running on Ubuntu Server 20.04. It’s time you kick the tires and see if it can serve as a replacement for the cPanel/CentOS combo.