WEBMIN ON CENTOS 7

INSTALLATION OF WEBMIN ON CENTOS 7

Webmin is a Web-based tool for Linux for managing services like Databases, DNS, DHCP and other Networking services.

It is also used to manage Users, Disk, Filesystem, packages, Processes etc.

By the end of this tutorial, You can have a Webmin installed on your Linux machine.

Installation

First, We need to create a repository for the Webmin:

#vi /etc/yum.repos.d/webmin.repo

Open the file and paste the below lines:

[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled

Download the Webmin gpg Key:

#wget http://www.webmin.com/jcameron-key.asc

Import the key:

#rpm –import jcameron-key.asc

Now We can install Webmin packages from the Repository:

#yum install webmin -y

Start the Webmin service and enable to run on boot:

#service webmin start

#chkconfig webmin on

Webmin listens on Port 10000.We need to allow it on the firewall.

Make sure you have firewalld packages installed and it is running.

#yum install firewalld -y

#systemctl start firewalld 

Now open the ports on Firewall:

#firewall-cmd –permanent –zone=public –add-port=10000/tcp

#firewall-cmd –reload

Now Open your Browser and use the below URL to access Webmin console:

http://serverIPAddress:10000

You will be asked to enter Username and Password.

Open the terminal of your server and run the below command to find the root password of webmin:

#cat /etc/webmin/mysql/config |grep pass

If you cannot see the password, No issues We can set the Password using the below command:

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

You can use the above password to login to Webmin.

That’s All.We have installed Webmin on Centos 7 successfully.