Tuesday, 22 March 2016

How to Install Webmin on CentOS/RHEL 7



Webmin is a web-based interface for system administration for Centos / RHEL and mostly other distribution as well. User accounts, Apache, DNS, file sharing and other services can be managed by web browser using webmin tool.

Step 1: Change Directory to save downloaded data:

[root@linuxcnf ~]# cd /opt/
[root@linuxcnf opt]#

Step 2: Install prerequisites for webmin tool:

[root@linuxcnf opt]# yum install perl-Net-SSLeay wget
Loaded plugins: fastestmirror
…….

Installed:
  perl-Net-SSLeay.x86_64 0:1.55-3.el7       wget.x86_64 0:1.14-10.el7_0.1
Complete!
[root@linuxcnf opt]#

Step 3: Download rpm key file:

[root@linuxcnf opt]# wget http://www.webmin.com/jcameron-key.asc
…….
Saving to: ‘jcameron-key.asc’
100%[======================================>] 1,320       --.-K/s   in 0s
2016-03-19 04:40:21 (68.5 MB/s) - ‘jcameron-key.asc’ saved [1320/1320]
[root@linuxcnf opt]#

Step 4: Download webmin package from official site:

[root@linuxcnf opt]# wget  http://www.webmin.com/download/rpm/webmin-current.rpm
……
Saving to: ‘webmin-current.rpm’
100%[======================================>] 28,708,923   324KB/s   in 1m 51s
2016-03-19 04:47:18 (254 KB/s) - ‘webmin-current.rpm’ saved [28708923/28708923]
[root@linuxcnf opt]#

Step 5: Import rpm key:

[root@linuxcnf opt]# rpm --import jcameron-key.asc
[root@linuxcnf opt]#

Step 6: Install webmin package:

[root@linuxcnf opt]# rpm -Uvh webmin-*.rpm
Preparing...                          ################################# [100%]
Operating system is CentOS Linux
Updating / installing...
   1:webmin-1.791-1                   ################################# [100%]
Webmin install complete. You can now login to https://localhost.localdomain:10000/
as root with your root password.
[root@linuxcnf opt]#

Step 7: Start webmin service:

[root@linuxcnf opt]# service webmin start

Step 8: Configure webmin service to start on bootup:

[root@linuxcnf opt]# chkconfig webmin on

Step 9: Open port from the OS firewall:

[root@linuxcnf opt]# firewall-cmd --permanent --zone=public --add-port=10000/tcp
Success
[root@linuxcnf opt]#

Step 10: Reload firewall service to reload configuration:

[root@linuxcnf opt]# firewall-cmd --reload
Success
[root@linuxcnf opt]#
  
It’s done. Login to Webmin URL http://localhost:10000/ and use root username and password.

No comments:

Post a comment