How to install Webmin on Rocky Linux 9.3
- 00:36 Cat /etc/os-release
- 00:54 dnf install wget tar perl -y
- 02:09 wget https://www.webmin.com/download/webmin-current.tar.gz
- 02:27 ll
- 02:38 tar xvf webmin-current.tar.gz
- 03:26 ll
- 03:38 mkdir -p /usr/local/webmin
- 03:56 ./webmin-2.110/setup.sh /usr/local/webmin/
- 05:36 firewall-cmd --add-port=10000/tcp --permanent
- 06:05 firewall-cmd --reload
To Install Webmin On Rocky Linux 9.3
Introduction:
Webmin is a web-based server management control panel for Unix-like systems that allows the user to configure operating system internals, such as users, disk quotas, services, and configuration files, as well as modify and control open-source apps, such as BIND, Apache HTTP Server, PHP, and MySQL.
Installation Steps:
Step 1: First check the OS version by using the below command
[root@linuxhelp ~]# cat /etc/os-release
NAME="Rocky Linux"
VERSION="9.3 (Blue Onyx)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.3"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Rocky Linux 9.3 (Blue Onyx)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:9::baseos"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2032-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"
ROCKY_SUPPORT_PRODUCT_VERSION="9.3"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.3"
Step 2: Install the necessary dependencies to install webmin by using the below command
[root@linuxhelp ~]# dnf install wget tar perl -y
Rocky Linux 9 - BaseOS 4.5 kB/s | 4.1 kB 00:00
Rocky Linux 9 - BaseOS 1.3 MB/s | 2.2 MB 00:01
Rocky Linux 9 - AppStream 4.7 kB/s | 4.5 kB 00:00
Rocky Linux 9 - AppStream 3.8 MB/s | 7.4 MB 00:01
Rocky Linux 9 - Extras 3.1 kB/s | 2.9 kB 00:00
Package wget-1.21.1-7.el9.x86_64 is already installed.
Package tar-2:1.34-6.el9_1.x86_64 is already installed.
Dependencies resolved.
=================================================================================================================================================================================================
Package Architecture Version Repository Size
=================================================================================================================================================================================================
Installing:
perl x86_64 4:5.32.1-480.el9 appstream 13 k
Installing dependencies:
gcc-c++ x86_64 11.4.1-2.1.el9 appstream 13 M
libstdc++-devel x86_64 11.4.1-2.1.el9 appstream 2.2 M
perl-Archive-Zip noarch 1.68-6.el9 appstream 106 k
perl-Attribute-Handlers noarch 1.01-480.el9 appstream 28 k
perl-CPAN noarch 2.29-3.el9 appstream 556 k
Transaction Summary
=================================================================================================================================================================================================
Install 130 Packages
Total download size: 22 M
Installed size: 64 M
Downloading Packages:
(1/130): perl-Package-Generator-1.106-23.el9.noarch.rpm 77 kB/s | 23 kB 00:00
(2/130): perl-Module-Load-0.36-4.el9.noarch.rpm 57 kB/s | 17 kB 00:00
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 4.7 MB/s | 22 MB 00:04
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : perl-threads-1:2.25-460.el9.x86_64 1/130
Installing : perl-threads-shared-1.61-460.el9.0.1.x86_64 2/130
Installed:
gcc-c++-11.4.1-2.1.el9.x86_64
libstdc++-devel-11.4.1-2.1.el9.x86_64
perl-4:5.32.1-480.el9.x86_64
perl-Archive-Zip-1.68-6.el9.noarch
perl-utils-5.32.1-480.el9.noarch
perl-vmsish-1.04-480.el9.noarch
sombok-2.4.0-16.el9.x86_64
Complete!
Step 3: Download the Webmin Installation file by using the wget command
[root@linuxhelp ~]# wget https://www.webmin.com/download/webmin-current.tar.gz
--2024-04-21 03:11:56-- https://www.webmin.com/download/webmin-current.tar.gz
Resolving www.webmin.com (www.webmin.com)... 216.105.38.11
Connecting to www.webmin.com (www.webmin.com)|216.105.38.11|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://webmin.com/download/webmin-current.tar.gz [following]
--2024-04-21 03:11:58-- https://webmin.com/download/webmin-current.tar.gz
Resolving webmin.com (webmin.com)... 216.105.38.11
Connecting to webmin.com (webmin.com)|216.105.38.11|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://prdownloads.sourceforge.net/webadmin/webmin-2.110.tar.gz [following]
--2024-04-21 03:11:59-- https://prdownloads.sourceforge.net/webadmin/webmin-2.110.tar.gz
Resolving prdownloads.sourceforge.net (prdownloads.sourceforge.net)... 204.68.111.105
Connecting to prdownloads.sourceforge.net (prdownloads.sourceforge.net)|204.68.111.105|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://downloads.sourceforge.net/project/webadmin/webmin/2.110/webmin-2.110.tar.gz [following]
--2024-04-21 03:12:00-- https://downloads.sourceforge.net/project/webadmin/webmin/2.110/webmin-2.110.tar.gz
Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 204.68.111.105
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|204.68.111.105|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://excellmedia.dl.sourceforge.net/project/webadmin/webmin/2.110/webmin-2.110.tar.gz [following]
--2024-04-21 03:12:02-- https://excellmedia.dl.sourceforge.net/project/webadmin/webmin/2.110/webmin-2.110.tar.gz
Resolving excellmedia.dl.sourceforge.net (excellmedia.dl.sourceforge.net)... 202.153.32.19, 2401:fb00:0:1fe:8000::5
Connecting to excellmedia.dl.sourceforge.net (excellmedia.dl.sourceforge.net)|202.153.32.19|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 46518197 (44M) [application/x-gzip]
Saving to: ‘webmin-current.tar.gz’
webmin-current.tar.gz 100%[=======================================================================================================>] 44.36M 11.2MB/s in 4.0s
2024-04-21 03:12:06 (11.1 MB/s) - ‘webmin-current.tar.gz’ saved [46518197/46518197]
Step 4: Once the file has completed downloading, unpack it with the below command.
[root@linuxhelp ~]# tar xvf webmin-current.tar.gz
webmin-2.110/
webmin-2.110/acl/
webmin-2.110/acl/module.info.fi
webmin-2.110/acl/module.info.mt.auto
webmin-2.110/acl/module.info.hr.auto
webmin-2.110/acl/config.info.no
webmin-2.110/acl/config.info.pl
webmin-2.110/acl/module.info.el.auto
webmin-2.110/acl/switch.cgi
webmin-2.110/acl/webmin.schema
webmin-2.110/acl/module.info.da.auto
webmin-2.110/acl/twofactor.pl
webmin-2.110/acl/edit_sync.cgi
webmin-2.110/acl/module.info.ur.auto
webmin-2.110/acl/list_sessions.cgi
webmin-2.110/acl/module.info.sk.auto
webmin-2.110/acl/module.info.be.auto
webmin-2.110/acl/config.info.es
webmin-2.110/acl/module.info.th.auto
webmin-2.110/acl/module.info.da
webmin-2.110/acl/maketables.cgi
webmin-2.110/acl/module.info.lv.auto
webmin-2.110/acl/images/
webmin-2.110/change-user/module.info.ar
webmin-2.110/change-user/module.info.cs.auto
webmin-2.110/change-user/module.info.pt_BR.auto
webmin-2.110/password_change.cgi
webmin-2.110/config-irix
Step 5: Create a new directory for Webmin by using the below command
[root@linuxhelp ~]# mkdir -p /usr/local/webmin
Step 6: Run the install script by using the below ./ command
[root@linuxhelp ~]# ./webmin-2.110/setup.sh /usr/local/webmin
****************************************************************************
Welcome to the Webmin setup script, version 2.110
****************************************************************************
Webmin is a web-based interface that allows Unix-like operating
systems and common Unix services to be easily administered.
Installing Webmin from /root/webmin-2.110 to /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 ..
.. done
****************************************************************************
Operating system name: Rocky Linux
Operating system version: 9.3
****************************************************************************
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 web server 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
Start Webmin at boot time (y/n): y
****************************************************************************
Copying files to /usr/local/webmin ..
.. done
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
Configuring Webmin to start at boot time ..
.. 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 web server ..
.. done
****************************************************************************
Webmin has been installed and started successfully.
Since Webmin was installed outside the package manager, ensure the
following recommended Perl modules and packages are present:
Perl modules:
- DateTime, DateTime::Locale, DateTime::TimeZone, Data::Dumper
- Digest::MD5, Digest::SHA, Encode::Detect, File::Basename
- File::Path, Net::SSLeay, Time::HiRes, Time::Local, Time::Piece
- lib, open
Packages:
- openssl - Cryptography library with TLS implementation
- shared-mime-info - Shared MIME information database
- tar gzip unzip - File compression and packaging utilities
Use your web browser to go to the following URL and login
with the name and password you entered previously:
https://linuxhelp:10000
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.
Step 7: Allow default webmin port 10000 on firewall and reload the firewall by using the below commands
[root@linuxhelp ~]# firewall-cmd --add-port=10000/tcp --permanent
success
[root@linuxhelp ~]# firewall-cmd --reload
success
Step 8: Now go to the web browser and search with your IP address or domain name along with the port 10000 as shown in the below image.

Step 9: Then click Advanced and Accept the Risk and continue option to enter into the webmin console as shown in the below image.
Step 10: Now you will see the login page. Here enter the credentials username and password which was created during installation.

Step 11: This is the webmin dashboard console

Conclusion:
We have reached the end of this article. In this guide, we have walked you through the steps required to installation of Webmin on Rocky Linux 9.3. Your feedback is much welcome.
Comments ( 0 )
No comments available