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
/usr/libexec/webmin/changepass.pl /etc/webmin admin foo
perl -MCPAN -e 'install Digest::MD5'
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 .