How to install Webmin in CentOS 6.9

To install Webmin in CentOS 6.9

Webmin is a free and open source web based control panel tool used by system administrators to configure Linux and other UNIX like applications. Webmin has an easy-to-use interface and allows its users to manage internal system configuration like HTTP, DNS, PHP or MySQL, file sharing, etc. Installing Webmin in CentOS 6.9 is very simple and in this tutorial, you are going to be briefed about it.

Installing Webmin

The foremost step for the installation of Webmin is the addition of the necessary repo in the machine. It can be done with the help of the following command.

[root@linuxhelp ~]# vim /etc/yum.repos.d/webmin.repo
Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1

Once it is done, you can download the webmin repo key file by invoking the following command.

[root@linuxhelp ~]# wget http://www.webmin.com/jcameron-key.asc
--2017-08-18 01:58:49-- http://www.webmin.com/jcameron-key.asc
Resolving www.webmin.com... 216.34.181.97
Connecting to www.webmin.com|216.34.181.97|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1320 (1.3K) [text/plain]
Saving to: “ jcameron-key.asc” 
100%[==================================================> ] 1,320 --.-K/s in 0s
2017-08-18 01:58:50 (143 MB/s) - “ jcameron-key.asc”  saved [1320/1320]

After that, you are required to insert the webmin key file. Run the following command for the same purpose.

[root@linuxhelp ~]# rpm --import jcameron-key.asc

Now is the time to install the webmin package. You can execute the action by running the following command.

[root@linuxhelp ~]# yum install webmin
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: ftp.iitm.ac.in
* extras: ftp.iitm.ac.in
.
.
.
Verifying : perl-Encode-Detect-1.01-2.el6.x86_64 2/3
Verifying : webmin-1.850-1.noarch 3/3
Installed:
webmin.noarch 0:1.850-1
Dependency Installed:
perl-Encode-Detect.x86_64 0:1.01-2.el6 perl-Net-SSLeay.x86_64 0:1.35-10.el6_8.1
Complete!

Webmin has been installed, so all you need to do is open the webmin port on iptables.

[root@linuxhelp ~]# iptables -A INPUT -p tcp -m tcp --dport 10000 -j ACCEPT
[root@linuxhelp ~]# iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT

Save the iptables.

[root@linuxhelp ~]# service iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]

After saving, check their status.

[root@linuxhelp ~]# service iptables status
Table: filter
Chain INPUT (policy ACCEPT)
num target prot opt source destination
1 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:10000
2 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
Chain FORWARD (policy ACCEPT)
num target prot opt source destination
Chain OUTPUT (policy ACCEPT)
num target prot opt source destination

Finally, you can open the browser and type https:< your ip address> :10000. Here the URL used is https://192.168.7.191:10000

With this the installation of Webmin is complete.

Tag : CentOS Webmin
FAQ
Q
How can I uninstall Webmin?
A
Just run the command /etc/webmin/uninstall.sh .
If you have installed the RPM version of Webmin, you can also use rpm -e webmin, or if you have installed the Solaris package you can use pkgrm WSwebmin .
Q
Can I run Webmin or Usermin under Apache?
A
es, this can be done with some configuration. See this document for details on running Webmin under Apache, or this page for details on running Usermin.
Q
How do I change my Webmin password if I can't login?
A
Included with the Webmin distribution is a program called changepass.pl to solve erecisely this problem. Assuming you have installed Webmin in /usr/libexec/webmin, you could change the password of the admin user to foo by running
/usr/libexec/webmin/changepass.pl /etc/webmin admin foo
Q
where you got the we repo key from?
A
Please refer the link as follow "http://www.webmin.com/jcameron-key.asc".
Q
Where can I get the Perl Digest::MD5 module from?
A
The simplest way to install it is with the command :
perl -MCPAN -e 'install Digest::MD5'