We are committed to provide service 24 X 7

Deals, Shopping, Training, Tools

Learn how to – Install Webmin on RHEL 8|CentOS 8|Rocky Linux 8

Learn how to – Install Webmin on RHEL 8|CentOS 8|Rocky Linux 8.

In this guide, we will cover the steps to Install Webmin on RHEL 8|CentOS 8|Rocky Linux 8. Webmin is the leading open source web-based Linux/Unix system administration control panel.

With Webmin you can set up user accounts, manager Apache web server, DNS Server, samba and File configuration, email servers, local/remote filesystems, package management, manage database servers e.t.c.

For Ubuntu / Debian, use:

Install Webmin on RHEL 8|CentOS 8|Rocky Linux 8

In this section, we will consider the two methods of installing Webmin on RHEL 8|CentOS 8|Rocky Linux 8.

But first, install Perl and required dependencies.

sudo yum -y install @perl

Method 1: Install Webmin on RHEL / CentOS 8 from YUM repository

Add repository content to your RHEL / CentOS 8 system.

sudo tee /etc/yum.repos.d/webmin.repo<<EOF
[Webmin]
name=Webmin Distribution Neutral
baseurl=https://download.webmin.com/download/yum
enabled=1
EOF

Then import repository GPG key:

sudo rpm --import http://www.webmin.com/jcameron-key.asc

Then install webmin using yum package manager.

sudo dnf install webmin

Press y to accept installation:

...
Transaction Summary
======================================================================================================================================================================================================
Install  40 Packages

Total download size: 44 M
Installed size: 142 M
Is this ok [y/N]: y

To get the package version and other details, use:

$ rpm -qi webmin
Name        : webmin
Version     : 2.021
Release     : 1
Architecture: noarch
Install Date: Mon 05 Jun 2023 11:09:07 PM UTC
Group       : System/Tools
Size        : 121412845
License     : BSD-3-clause
Signature   : DSA/SHA1, Fri 26 May 2023 11:15:20 PM UTC, Key ID d97a3ae911f63c51
Source RPM  : webmin-2.021-1.src.rpm
Build Date  : Fri 26 May 2023 11:14:57 PM UTC
Build Host  : builder2.home
Relocations : (not relocatable)
Vendor      : Jamie Cameron
....

Method 2: Install Webmin on RHEL 8|CentOS 8|Rocky Linux 8 Manually

I recommend you install Webmin onRHEL 8|CentOS 8|Rocky Linux 8 from this method to get the latest installation of Webmin.

Visit Webmin releases page to check for the latest release of Webmin and download it.

sudo yum -y install wget
wget http://www.webmin.com/download/webmin-current.tar.gz

Uncompress downloaded file

tar xvf webmin-current.tar.gz
rm -f webmin-current.tar.gz

Move the resulting folder to

sudo mv webmin* /usr/local/webmin

Change your working directory to /usr/local/webmin/ and run Webmin installer script.

cd /usr/local/webmin/
sudo ./setup.sh

Set

  • Config file directory
  • Log file directory
  • Full path to Perl
  • operating system – type and version
  • Web server port (default 10000)
  • Login name (default admin)
  • Login password
  • SSL

See below installation output.

$ sudo ./setup.sh
 
 Welcome to the Webmin setup script, version 1.900        * 
 
 Webmin is a web-based interface that allows Unix-like operating
 systems and common Unix services to be easily administered.
 Installing Webmin in /usr/local/webmin …
 
 Webmin uses separate directories for configuration files and log files.
 Unless you want to run multiple versions of Webmin at the same time
 you can just accept the defaults.
 Config file directory [/etc/webmin]: 
 Log file directory [/var/webmin]: 
 
 Webmin is written entirely in Perl. Please enter the full path to the
 Perl 5 interpreter on your system.
 Full path to perl (default /usr/bin/perl): 
 Testing Perl …
 Perl seems to be installed ok
 
 For Webmin to work properly, it needs to know which operating system
 type and version you are running. Please select your system type by
 entering the number next to it from the list below
 1) Pardus Linux           2) SmartOS                3) Sun Solaris          
   4) Lycoris Desktop/LX     5) Caldera OpenLinux eS   6) Caldera OpenLinux    
   7) Asianux Server         8) Asianux                9) Whitebox Linux       
  10) Tao Linux             11) CentOS Linux          12) Springdale Linux     
  13) Virtuozzo Linux       14) Scientific Linux      15) Gralinux             
  16) NeoShine Linux        17) Endian Firewall Linu  18) Oracle Enterprise Li 
  19) Oracle VM             20) XenServer Linux       21) CloudLinux           
  22) MostlyLinux           23) Cloudrouter Linux     24) Sangoma Linux        
  25) Redhat Enterprise Li  26) Redhat Linux Desktop  27) AlphaCore Linux      
  28) X/OS Linux            29) Haansoft Linux        30) cAos Linux           
  31) Wind River Linux      32) Amazon Linux          33) Redhat Linux         
  34) Fedora Linux          35) White Dwarf Linux     36) Slamd64 Linux        
  37) Slackware Linux       38) Xandros Linux         39) APLINUX              
  40) BigBlock              41) Ubuntu Linux          42) Mepis Linux          
  43) Devuan Linux          44) Raspbian Linux        45) Linux Mint           
  46) Debian Linux          47) SuSE OpenExchange Li  48) SuSE SLES Linux      
  49) SuSE Linux            50) United Linux          51) Corel Linux          
  52) TurboLinux            53) Cobalt Linux          54) Mandrake Linux Corpo 
  55) pclinuxos Linux       56) Mageia Linux          57) Mandrake Linux       
  58) Mandriva Linux        59) Mandriva Linux Enter  60) Conectiva Linux      
  61) ThizLinux Desktop     62) ThizServer            63) MSC Linux            
  64) SCI Linux             65) LinuxPPC              66) Trustix SE           
  67) Trustix               68) Tawie Server Linux    69) TinySofa Linux       
  70) Cendio LBS Linux      71) Ute Linux             72) Lanthan Linux        
  73) Yellow Dog Linux      74) Corvus Latinux        75) Immunix Linux        
  76) Gentoo Linux          77) Secure Linux          78) OpenNA Linux         
  79) SoL Linux             80) Coherent Technology   81) Playstation Linux    
  82) StartCom Linux        83) Yoper Linux           84) Caixa Magica         
  85) openmamba Linux       86) FreeBSD               87) DragonFly BSD        
  88) OpenBSD               89) NetBSD                90) BSDI                 
  91) HP/UX                 92) SGI Irix              93) DEC/Compaq OSF/1     
  94) IBM AIX               95) SCO UnixWare          96) SCO OpenServer       
  97) Mac OS X              98) Darwin                99) OpenDarwin           
  100) Cygwin                101) Sun Java Desktop Sys  102) Synology DSM         
  103) Generic Linux         104) Windows              
 Operating system: 25
 Please enter the version of Redhat Enterprise Linux you are running
 Version: 8
 Operating system name:    Redhat Enterprise Linux
 Operating system version: 8
 
 Webmin uses its own password protected web server to provide access
 to the administration programs. The setup script needs to know :
 What port to run the web server on. There must not be another
 web server already using this port.
 The login name required to access the web server.
 The password required to access the web server.
 If the webserver should use SSL (if your system supports it).
 Whether to start webmin at boot time. 
 Web server port (default 10000): 
 Login name (default admin): 
 Login password: 
 Password again: 
 Use SSL (y/n): y
 Webmin does not support being started at boot time on your system.
 
 Creating web server config files..
 ..done
 Creating access control file..
 ..done
 Inserting path to perl into scripts..
 ..done
 Creating start and stop scripts..
 ..done
 Copying config files..
 ..done
 Creating uninstall script /etc/webmin/uninstall.sh ..
 ..done
 Changing ownership and permissions ..
 ..done
 Running postinstall scripts ..
 ..done
 Enabling background status collection ..
 ..done
 Attempting to start Webmin mini web server..
 Starting Webmin server in /usr/local/webmin
 Cron 15467891196435 missing any time spec
 ..done
 
 Webmin has been installed and started successfully. Use your web
 browser to go to
 https://rhel8.local:10000/
 and login with the name and password you entered previously.
 Because Webmin uses SSL for encryption only, the certificate
 it uses is not signed by one of the recognized CAs such as
 Verisign. When you first connect to the Webmin server, your
 browser will ask you if you want to accept the certificate
 presented, as it does not recognize the CA. Say yes.

Configure Webmin onRHEL 8|CentOS 8|Rocky Linux 8

To be able to access Webmin Web interface from the network, you need to allow TCP port 10000 in the firewall.

sudo firewall-cmd --add-port=10000/tcp --permanent
sudo firewall-cmd --reload

Access Webmin Interface

Now that you have installed Webmin onRHEL 8|CentOS 8|Rocky Linux 8, open your server URL/IP address port 10000, e.g https://192.168.122.197:10000

If you get “Invalid Certificate”  warning, click Continue Anyway

Login with username specified during installation and its password

The default page shown is the summary of your system details.

From the web interface you can do much of Linux administration. A similar tool to this is Cockpit, check our guide below:

Recommended Linux Books  to read:

More guides on CentOS /RHEL 8:

Cart

Your Cart is Empty

Back To Shop