In this article, I will take you through the steps to install Virtualmin on Ubuntu 20.04 LTS but before that let me ask you a question. Do you know what makes Virtualmin different from other web hosting control panels ? If you don’t know then let me tell you it is the webmin which sets Virtualmin apart from other control panels by providing comprehensive System Management UI, in addition to virtual web hosting capabilities.
Virtualmin is the most popular and powerful web hosting control panel for Linux and BSD systems. It is available in an open-source community-supported version, and a more feature-filled version with premium support. We will the steps to install Virtualmin in below section. You can use either of them. More on official documentation.
a) You should have a running
Ubuntu 20.04 LTS Server.
b) You should have
root access to run privileged commands.
c) You should have
apt-get utility installed in your Server.
In the first step, you need to update all your packages with the latest version available in the Ubuntu Repository. This can be easily done by using
apt update or
apt-get update command as shown below.
root@localhost:~# apt update Hit:1 http://software.virtualmin.com/vm/6/gpl/apt virtualmin-focal InRelease Hit:2 http://software.virtualmin.com/vm/6/gpl/apt virtualmin-universal InRelease Hit:3 http://in.archive.ubuntu.com/ubuntu focal InRelease Get:4 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB] Hit:5 https://packages.microsoft.com/repos/edge stable InRelease Hit:6 http://ppa.launchpad.net/ansible/ansible/ubuntu focal InRelease Get:7 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB] Hit:8 https://apt.releases.hashicorp.com focal InRelease Hit:9 http://ppa.launchpad.net/micahflee/ppa/ubuntu focal InRelease Get:10 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB] Get:11 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease [86.6 kB] Get:12 http://in.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [283 kB] Get:13 http://in.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [362 kB] Get:14 http://in.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [940 B]
In the next step, you need to download the Virtualmin installer file by using below wget command. It will download the installer file in the current local directory path as
root@localhost:~# wget https://software.virtualmin.com/gpl/scripts/install.sh --2021-10-24 14:05:23-- https://software.virtualmin.com/gpl/scripts/install.sh Resolving software.virtualmin.com (software.virtualmin.com)... 188.8.131.52 Connecting to software.virtualmin.com (software.virtualmin.com)|184.108.40.206|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 33073 (32K) [application/x-sh] Saving to: ‘install.sh’ install.sh 100%[============================================================================>] 32.30K --.-KB/s in 0.1s 2021-10-24 14:05:24 (262 KB/s) - ‘install.sh’ saved [33073/33073]
To run the previously downloaded install.sh file, you need to provide execute permission. This can be done by using chmod +x install.sh command.
root@localhost:~# chmod +x install.sh
Now you can run this installer file by using
./install.sh to install Virtualmin and all the required packages as shown below.
root@localhost:~# ./install.sh 2021-10-24 14:06:24 URL:https://software.virtualmin.com/lib/slib.sh [22148/22148] -> "slib.sh"  Welcome to the Virtualmin GPL installer, version 6.2.2 This script must be run on a freshly installed supported OS. It does not perform updates or upgrades (use your system package manager) or license changes (use the "virtualmin change-license" command). The systems currently supported by install.sh are: CentOS/RHEL Linux 7, and 8 on x86_64 Debian 9, and 10 on i386 and amd64 Ubuntu 16.04 LTS, 18.04 LTS, and 20.04 LTS on i386 and amd64 If your OS/version/arch is not listed, installation will fail. More details about the systems supported by the script can be found here:
By default, Virtualmin Server will listen on Port 10000, so we need to allow this Port from firewall by using ufw allow 10000 command as shown below.
root@localhost:~# ufw allow 10000 Rules updated Rules updated (v6)
As you have noticed in the earlier step, Virtualmin is currently running on
https://192.168.29.113:10000) so you need to open your favorite browser and give this URL to access the Webmin UI.
You can use your local user account credentials to login to Virtualmin. For example, here I am signing in with my local
cyberithub account and password. Once signed in, you will get below Post-Installation wizard. You can either proceed to configure Virtualmin by clicking on
Next or use the default settings by Clicking on
Cancel. As of now, I am going to use the default settings so I will just Click on
Cancel. In future posts, I will show you how to configure this.
Once everything is completed and you no longer require Virtualmin in your Server then you can completely remove this Web Hosting Control Panel Application by using
./install.sh -u command as shown below.