This brief tutorial shows students and new users how to install Webmin and Virtualmin on Ubuntu 18.04 | 20.04 LTS servers.
If you’re reading this post then you probably know a thing or two about web hosting.
For those who don’t, Webmin and Virtualmin are open source tools that allows anyone be a web host provider.
These tools take the complexity out of managing Linux servers. Instead of managing each individual server and service, Webmin and Virtualmin provide a simple web interface to help manage and provision a virtual web host, manage domains email server, databases and more.
For more about Webmin, check out its homepage.
To get started installing Webmin and Virtualmin, follow the steps below:
Step 1: Install Webmin
Since Webmin is the main system configuration tool, you should install it first before Virtualmin.. run the commands below to install required packages.
sudo apt update sudo apt install python apt-show-versions libapt-pkg-perl libauthen-pam-perl libio-pty-perl libnet-ssleay-perl curl
After that, run the commands below to download Webmin deb package.
cd /tmp && curl -L -O http://www.webmin.com/download/deb/webmin-current.deb
Finally, install Webmin
sudo apt install ./webmin-current.deb
That should install Webmin..
Step 2: Accessing Webmin
Now that Webmin is installed, you can access the interface by opening your web browser and browsing the the server hostname or IP address followed by port 10000.
If you’re coming from a remote location, you must add the IP address to the allowed list… you can do that by running the commands below to open Webmin default configuration file.
sudo nano /etc/webmin/miniserv.conf
Then adding a new line to allow a specific IP or subnet.
Save the file… you should be able to access Webmin
Step 3: Installing Virtualmin
Before installing Virtualmin, understand that it only support Ubuntu LTS versions. Non-LTS version will fail to install it.
Also, at the time of this writing, only Ubuntu 18.04 | 16.04 are supported. Support for 20.04 is being worked on.
Now that Webmin is installed, go and install Virtualmin.. Virtualmin allows you to manage Apache2 virtual hosts and DNS, just like you have with cPanel and other hosted packages.
Run the commands below to download Virtualmin script.
curl -O http://software.virtualmin.com/gpl/scripts/install.sh
Then make the script executable
sudo chmod +x install.sh
Finally, run the commands below to install Virtualmin
Accept the default setting and install.
When that’s done, you should have Virtualmin module enabled for Webmin and begin configuring your systems.
That should do it.
This post showed you how to install Webmin and Virtualmin on Ubuntu 18.04 | 20.04. If you find any error above, please use the comment form below to report.
You may also like the post below: