Setting up Webmin on Centos/RHEL7

What is Webmin?

It is a web-based interface for system administration for Unix/Linux. With Webmin you can setup nearly every single aspect of a server like DNS, file sharing, user accounts, Apache, process, packages etc..

Webmin tool offer to new system administrators to perform all system management task from via a web browser, Instead of using the command line console or terminal. You can also manage a system from the console or remotely.

webmin_logo_ittroubleshooter-in

Before the installation, please make sure you have root level permissions or sudo access to your system.

There are few steps to install Webmin on system, they are;
1) Install the Webmin Package.

To install or update Webmin, First create the new  “webmin.repo” file in “/etc/yum.repos.d/” directory and that containing;

#vi /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

~
~
:wq

You should also download the GPG key and install, Using below the commands:

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

[root@server1 ~]# wget http://www.webmin.com/jcameron-key.asc
--2016-10-22 06:06:12--  http://www.webmin.com/jcameron-key.asc
Resolving www.webmin.com (www.webmin.com)... 216.34.181.97
Connecting to www.webmin.com (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 0.03s   

2016-10-22 06:06:18 (44.3 KB/s) - ‘jcameron-key.asc’ saved [1320/1320]

[root@server1 ~]#

Import the key using command.

#rpm –import jcameron-key.asc

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

Clean the caches and List the all yum repositories, using below command.

#yum clean all && yum repolist list

[root@server1 ~]# yum clean all && yum repolist list

Now you will be able to install webmin package using below command.

#yum install webmin -y

[root@server1 ~]# yum install webmin 
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package webmin.noarch 0:1.820-1 will be installed


. . . .

Transaction Summary
=========================================
Install  1 Package (+1 Dependent package)

Total download size: 28 M
Installed size: 75 M
Is this ok [y/d/N]: y

2) Start the service and make the service enable even after reboot of the server.

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

[root@server1 ~]# /etc/init.d/webmin start
[root@server1 ~]# chkconfig webmin on
[root@server1 ~]#

3) Allow Webmin service port on firewall of the server.

By default Port of Webmin service is 10000/tcp. To enable on firewall refer below command.

[root@server1 ~]#firewall-cmd --add-port=10000/tcp  --permanent 
[root@server1 ~]#firewall-cmd --reload
[root@server1 ~]#

4) Access from web browser.

Open the web browser type the webmin server ip address with port(https://<Server_IPAddress:10000>) and enter your root username and password for login;

ittroubleshooter-in_webmin1

ittroubleshooter-in_webmin2

Hope this post will help Linux/Unix beginners. Please share you feedback and Comments.!!!

Read Also: Configure DNS Server Step-by-Step config Guide Using Webmin

Leave a Reply

Be the First to Comment!

Notify of
avatar
wpDiscuz