How to Install Webmin on CentOS/RHEL 7/6/5 – Linux

Hi all,

Installing Webmin on CentOS is very easy. We have already gone through the steps for installing Webmin control panel on Ubuntu servers. Webmin can be installed on a server having CentOS in two ways. Both methods are easy and will note take much time from your busy schedule. If you are so fast with commands this can be done in 5 minutes I believe.

As I said earlier, there are two ways we can install Webmin on a CentOS server, one is using RPM and other is using the yum repository. The first method is faster than the second so I will explain that first. In a faster world we will go for only faster methods, right? Please read through and try out the steps guys.

For demonstrating this, I use my test server and it’s OS version details are given below:
[root@test ~]# cat /etc/redhat-release CentOS release 6.7 (Final) [root@test ~]# uname -a Linux 2.6.32-042stab092.1 #1 SMP Tue Jun 24 09:10:28 MSK 2014 x86_64 x86_64 x86_64 GNU/Linux

How to install Webmin on CentOS?

Method 1: Installing using the RPM

In this method, let’s download the RPM files required for the installation first. For that please follow below steps.
You can run the below command on the terminal to download the RPM file.
# wget

Then install optional dependencies with :
yum -y install perl perl-Net-SSLeay openssl perl-IO-Tty

And now we install the Webmin using the below command:
rpm -U webmin-1.791-1.noarch.rpm

Expected output:

If you found success with this method, you will be able to access the Webmin control panel using the below link:

The administration username is root and the password is your current root password for the server.

Method 2: Using the Webmin YUM repository

In this method we will first create/add the repo file to the server under /etc/yum.repos.d/. Please use your favorite text editor to create this file and add the repo information. I use vi editor here as it’s my favorite.
# vi /etc/yum.repos.d/webmin.repo [Webmin] name=Webmin Distribution Neutral #baseurl= mirrorlist= ~ ~ ~ :wq!

Sample screenshot:

We may have to fetch and install my GPG key with which the packages are signed, for that do the below steps:

# wget # rpm --import jcameron-key.asc

We are almost done, you will now be able to install with the command :

# yum install webmin

All dependencies should be resolved automatically.

IMPORTANT: If you get errors!

If you are getting the above error when accessing the control panel please do not worry, its because the Webmin is in the SSL mode, you can try accessing control panel using secured port, https.

The web-interface login will look like below:

You can give the user name as root and give the root password of your server to get into the control panel.

The final window is given below:

That’s all guys! Thanks a lot for visiting the site! See you!

Leave a Reply

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