How to Install Webmin on CentOS/Redhat 5/6/7

Webmin is a web-based interface for system administration for Unix.
Using any browser that supports tables and forms, you can setup user
accounts, Apache, internet services, DNS, file sharing and so on.

install-webmin

In this article, we can see about how to install webmin on CentOS

Import Key

Import Webmin signing key for verifying packages using following command.

# cd /opt
# wget http://www.webmin.com/jcameron-key.asc
# rpm --import jcameron-key.asc

Download and Install Webmin

Webmin rpms are available on its official site. Download it from there. Use following command to install webmin using RPM.

# cd /opt
# wget  http://www.webmin.com/download/rpm/webmin-current.rpm
# rpm -Uvh webmin-*.rpm

Open Port

Of course Webmin keeps running on port 10000, so we have to open port on our firewall to get to it. The easiest way to open the port on firewall is using iptables rules.
CentOS/RHEL 5/6

# iptables -A INPUT -p tcp -m tcp --dport 10000 -j ACCEPT
# service iptables save
# /etc/init.d/iptables restart

CentOS/RHEL 7

# firewall-cmd --add-port=10000/tcp
# firewall-cmd --reload

Start Webmin

Run the following commands to start the webmin service and make it start automatically
CentOS/RHEL 5/6

# chkconfig webmin on
# /etc/init.d/webmin start

CentOS/RHEL 7

# systemctl enable webmin
# systemctl start webmin

Access Webmin

Presently we should ready to get to and login to Webmin using URL localhost or IP and enter the username as root and password (current root secret word), for remote get to simply access localhost with your remote IP address.

# http://localhost:10000/
or
# http://server-IP:10000/

webmin

webmin1

Change/Reset Webmin root Password

Change webmin root account password use following command:

# /usr/libexec/webmin/changepass.pl /etc/webmin root secretaccess

Reference Articles:
How to Install Webmin on CentOS/Redhat 5/6/7 using yum
How to Configure Webmin Repository on CentOS/RHEL

No Responses

Leave a Reply

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

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.