How to install Webmin and Virtualmin on any Linux server

+1 vote
Answering this question, I will provide a simple and convenient instruction on installing Webmin and Virtualmin for any Linux distro (CentOS, Ubuntu, Debian, Gentoo).
asked Aug 15, 2016 in System administration by Denis

1 Answer

0 votes

Good day to you!
Webmin and Virtualmin enable you to deploy your own hosting on Apache web-server in about 30 minutes. This method is worth applying, if you need to create hosting for multiple sites with low traffic. If you plan to make one or several sites with heavy traffic, it’s better to use Nginx; find additional information about it in our articles:

Choosing a server and Linux distro:

If you already have a server with Linux, installed on it – just skip this clause.
For a small hosting, any inexpensive virtual server will be suitable, for example, DigitalOcean for 5$ per month (follow this link and get 10$ for registration without any additional conditions). DigitalOcean server will be ready in 3-5 minutes upon registration, and you will be able to move on.
And now, regarding Linux distro: if you are used to some specific distro – use it. If you have no preferences – then, it’s recommended to choose CentOS 6, it’s simple, stable and convenient. Many of web-hostings operate on this very CentOS distro.
If your server has 3 or less gigabytes of random access memory, then use x32 distro, if there is more memory – then, only x64.

Installing Webmin and Virtualmin:

The installation process is very simple, Webmin programmers have taken care about it.

1. Enter the server via ssh (for example, using Putty) as root user. Of course, you can use sudo, but it is completely unnecessary at the stage of primary server installation and setting. 
2. Before starting the installation, you need to specify the host name. Check, whether you have it specified:

hostname -f

If the host name is empty or localhost, that mean, you need to specify it before continuing the installation. Let’s correct hosts file, using vi editing program:

vi /etc/hosts

Press "i" for changing to an edit mode, add “hostname” line (change for your host) and also add your host name to the line with the address You should get something like this:

Add a hostname before installing Webmin


Save changes and close vi, to do this you should type ":wq".
Now, run the command again:

hostname -f

In the result, you should see the above-stated host name. If you cannot see it – it means, you have made a mistake somewhere. 
3. Now, download the installation script:


If there is no wget tool in your system – install it, using “yum install wget” command.
4. Now, give the script the write rights and start it:

chmod 744 ./

The script will fulfill all the further actions on its own, from time to time asking you various questions. Installation may last 5-60 minutes, depending on the server capacity. As soon as the installation is over, you can start using Webmin and Virtualmin.

Installing Webmin in a process 

5. After finishing the installation process, proceed to the address https://[server ip address]:10000 for primary setting and starting the working operations. 

If you have any questions or need some details – please, ask a question or leave a comment.
Good luck to you!

answered Aug 15, 2016 by Expert Brian (5,410 points)
Welcome to Help Desk, here you can ask any questions and receive answers from our experts and other members of the community.

If you have any questions, please do not hesitate to contact our help desk!

Make a question!