Install Webmin / Virtualmin on Ubuntu 16.04 | 18.04 LTS

Webmin and Virtualmin are great tools to have when managing Linux hosts and virtual webservers… Once installed, they’re easier to manage and provide system admins and webmasters the ability to take the complixity of managing Linux servers…

Webmin is a web based system configuration tools for administrators. Virtualmin is a module of Webmin for managing Apache2 virtual hosts and other domain settings. With Webmin and Virtualmin, administrators can administer the creation and management of Apache2 virtual hosts, BIND DNS, MySQL database and user accounts on the local server.

Webmin takes aways the complexity of managing system configuration files on Linux systems. For new users and students Webmin can be very useful… It also allows you to manage mailboxes, aliases and domain all via a single web interface.

This brief tutorial is going to show students and new users how to install Webmin and Virtualmin on Ubuntu 16.04 to allow system administrators easy management interface.

When you’re ready to install Webmin and Virtualmin, continue below with the steps:

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

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 dpkg -i 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.

ex. https://localhost: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.

allow=192.168.X.X

Save the file… you should be able to access Webmin

webmin ubuntu install

Step 3: Installing Virtualmin

Virtualmin only supports Ubuntu LTS versions. If you don’t have those versions of Ubuntu, Virtualmin will fail to install… If you do, then continue below.

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

sudo ./install.sh

Accept the default setting and install.

When that’s done, you should have Virtualmin module enabled for Webmin and begin configuring your systems.

ubuntu virtualmin webmin

Enjoy~!

You may also like the post below:

Setup Apache2 Proxy Server for Tomcat 9 on Ubuntu 16.04 / 17.10 / 18.04

8 Replies to “Install Webmin / Virtualmin on Ubuntu 16.04 | 18.04 LTS

  1. It seems that installing Virtualmin will also install Webmin if it is not there – so I used your tutorial from “Step 3: Installing Virtualmin
    “. At least this is what happened in my case (Ubuntu 18.04).

    Really helpful tutorial, thank you!

  2. Hello Nice article, In the miniserv.conf do I specify the subnet with the /24 cidr?

    Thanks,

  3. Hi
    How to add domain in this? i am trying to add but it’s not working. can you please help me in these matter

    thank you

  4. UPDATE & WARNING: Virtualmin does’t support Ubuntu 18.04! Do not use in productive server!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: