Hamsa K
Editor
5 min read | 1 month ago

How to Install Webmin on Centos 7

Install webmin on centos 7

Webmin is a web-based system configuration tool for Unix-like systems.it is possible to configure operating system internals, such as users, disk quotas, services or configuration files, as well as modify and control open-source apps, such as the Apache HTTP Server, PHP or MySQL.Webmin is largely based on Perl, running as its own process and web server. It defaults to TCP port 10000 for communicating, and can be configured to use SSL if OpenSSL is installed with additional required Perl Modules.

we need to connect server with root user any other user with sudo privileges.

and update packages with below command.

[root@lampblogs ~]# yum update

Step 1: Install rpm

download rpm from official webmin download url  with wget command.

[root@lampblogs ~]# wget https://nchc.dl.sourceforge.net/project/webadmin/webmin/1.941/webmin-1.941-1.noarch.rpm

Before installing rpm package, you need to install all dependency packages with 

following command.

[root@lampblogs ~]# yum install perl perl-Net-SSLeay openssl perl-IO-Tty perl-Encode-Detect

once dependencies are installed,you can install webmin with below command.

[root@lampblogs ~]# rpm -U webmin-1.941-1.noarch.rpm

Step 2: Install using yum

Another way of installing webmin by using its official repository.Add the repository by creating a new repo file by following command.

[root@lampblogs ~]# vi /etc/yum.repos.d/webmin.repo

Add below content to above file and save it.

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

Then fetch and install the GPG key which was used to sign the packages.

[root@lampblogs ~]# wget http://www.webmin.com/jcameron-key.asc
[root@lampblogs ~]# rpm --import jcameron-key.asc

Now you can install wemin with yum like below

[root@lampblogs ~]# yum install webmin

once installation complete,you will get following message as output

Webmin install complete. You can now login to https://lampblogs.com:10000/
as root with your root password.

start the service on boot and check service status 

[root@lampblogs ~]# chkconfig webmin on
[root@lampblogs ~]# service webmin status
Webmin (pid 4191) is running

Step 3: configure firewall

If you are running firewall on your system, you can allow webmin default port 10000 in firewall to access from external network.

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

Step 4: Access webmin

Access webmin in your browser with HTTPS protocol,type your server ip and followed by 10000.

https://192.168.0.10 or domain_name:10000

You will get a warning about SSL certificate as we are using self signed certificate.you can accept and go forward to login.

 

 

 

 



Warning! This site uses cookies
By continuing to browse the site, you are agreeing to our use of cookies. Read our terms and privacy policy