Are you trying to install on Ubuntu Server?
This guide is for you.
Webmin is an open-source web control panel for system administration for Linux/UNIX. Webmin allows you to manage users, groups, disk quotas as well as configure most popular services including web, FTP, email and database servers. In this tutorial, we will show you how to install Webmin on an Ubuntu 20.04 server.
Here at LinuxAPT, as part of our Server Management Services, we regularly help our Customers to install Hosting Control panel for Website hosting.
In this context, we shall look into steps to install Webmin in Ubuntu system.
Prerequisites for the installation on Webmin ?
Before, we install Webmin, we will implement this task on Ubuntu 20.04 LTS (Focal Fossa). The same commands are also valid for Debian distribution.:
i. Ubuntu 20.04 system.
ii. User with sudo privileges.
How to Install Webmin in Ubuntu ?
Webmin is not available in the official repositories of Linux Ubuntu. Therefore, to install it in Ubuntu, you will have to manually add its repository to your OS.
Follow the below steps to install Webmin in Ubuntu:
1. Add key for Webmin repository
Our first step will be to get the key with which the Webmin repository was signed.
i. To do so, execute the below command in Terminal to download the key:
$ wget http://www.webmin.com/jcameron-key.asc
ii. Once the key is downloaded, add it using the below command:
$ sudo apt-key add jcameron-key.asc
Provide sudo password.
The "OK" in the following output shows the key has been added to your system.
2. Add repository for Webmin
Now, we will have to add the Webmin repository to our system’s local repository.
i. To do so, execute the below command in Terminal:
$ sudo add-apt-repository "deb http://download.webmin.com/download/repository sarge contrib"
ii. After adding the repositories, execute the update command to update the local repositories:
$ sudo apt update
iii. Now we are prepared to install the Webmin on our system. Execute the below command in Terminal to do so:
$ sudo apt install webmin
When asked for confirmation, press y, after which the system will start the installation of Webmin.
iv. At the end of the output, you will see the lines which will show you how to log into Webmin.
3. Allow Webmin in Firewall
If a firewall is enabled on your OS, you will have to allow Webmin through it.
By default, Webmin uses port 10000.
In order to allow Webmin in the firewall, execute either of the following commands in Terminal:
$ sudo ufw allow Webmin
$ sudo ufw allow 10000
4. Log in to Webmin
i. In order to login to Webmin, open any web browser, and navigate to the following address:
If you are trying to login to Webmin from some other system, use the following syntax:
https://<IP-address or hostname>:10000
In order to login to Webmin from outside the local network, you will require the public IP address. Also, it will require port forwarding configured on your router.
ii. You will see a page where you can enter the username and password to login as a root or sudo user.
iii. Once you have logged in, you will see the Webmin dashboard showing system information and other statistics.
How to Uninstall Webmin on Ubuntu ?
In case you no longer need Webmin program installed on your Ubuntu system, you can easily uninstall it using any of the following commands in Terminal:
$ sudo apt remove webmin
$ sudo /etc/webmin/uninstall.sh