How to Install Webmin on CentOS/RHEL

Webmin is a web-based graphical tool for unix . It is used to manage services like User management, Disk management, Network, Iptables ( Firewall ), Cron, Apache, DNS, File sharing and much more .
This article will help you to install and configure Webmin on CentOS, RHEL and Fedora systems. Kindly go through below steps.

Install perl-Net-SSLeay :

yum -y install perl-Net-SSLeay

Download and Install Webmin:

cd /opt
# wget
# wget
# rpm --import jcameron-key.asc
# rpm -Uvh webmin-*.rpm

By default, Webmin will listen on port 10000, Allow this port in iptables.

iptables -I INPUT -p tcp --dport 10000 -j ACCEPT
service iptables save

Access Webmin in browser:

Now open http://serverip:10000 in your browser, you could see the below screen after login ( Use root username and password ).


How to start stop Webmin services:

# /etc/init.d/webmin start
# /etc/init.d/webmin stop
# /etc/init.d/webmin restart
# /etc/init.d/webmin status

To change/Reset Webmin root password:

In order to change webmin root account password use following command.

# /usr/libexec/webmin/ /etc/webmin root secretpassword

To change Webmin default port:

If you want to change Webmin default port use below steps:

Login Webmin as root >> Webmin >> Webmin Configuration >> Ports and Addresses,You can change port there.

If you want to uninstall or remove webmin software on linux CentOS and Redhat enterprise,You can check our article on How to Uninstall Webmin from Linux CentOS/RHEL.