How to install Webmin on CentOS 7

The simplest and best way to get Webmin is to use automatic setup-repos.sh script to configure official repositories on your RHEL or Debian derivative systems. It can be done in two easy steps:

curl -o setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh
sh setup-repos.sh

This script will automatically setup our repository and install our GPG keys on your system, and provide webmin package for installation and easy upgrades in the future. The supported and tested systems are Red Hat Enterprise Linux, Alma, Rocky, Oracle, CentOS Stream, Fedora or Debian, Ubuntu, Kali.

If you receive an error like Hash algorithm SHA1 not available on newer versions of RHEL, CentOS or related Linux distributions, you may need to run update-crypto-policies --set DEFAULT:SHA1 before re-running setup-repos.sh.

The longer way but safe way to install Webmin with YUM:

  1. login as root
  2. Add repository : #nano /etc/yum.repos.d/webmin.repo
  3. paste this inside and save the file :
    [Webmin]
    name=Webmin Distribution Neutral
    #baseurl=http://download.webmin.com/download/yum
    mirrorlist=http://download.webmin.com/download/yum/mirrorlist
    enabled=1
  4. Install webmin GPG key : # wget http://www.webmin.com/jcameron-key.asc      #rpm --import jcameron-key.asc
  5. Install Webmin : #yum install webmin -y   then add support :  #yum install perl-Digest-MD5
  6. Another way is to just download the rpm, for example : wget http://download.webmin.com/download/yum/webmin-1.844-1.noarch.rpm
  7. then install optional dependencies with : yum -y install perl perl-Net-SSLeay openssl perl-IO-Tty perl-Encode-Detect and then run the command : rpm -U webmin-1.844-1.noarch.rpm
  8. Start the service and make it start automatically :
    #chkconfig webmin on
    #service webmin start
  9. Linux firewall will block all ports by default, there for just add rule allowing port 10000 through :
#firewall-cmd --zone=public --add-port=10000/tcp --permanent

Reload firewall to apply settings :

#firewall-cmd --reload

Open a browser and enter URL : https://Your_Host_Name:10000, enter user: root  and the password .

Good Luck

One Comment

Leave a Reply

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