blog-image

Nov 15, 2024

21 min read

Simple Guide – How to Install Webmin on Rocky Linux 9 and How to Use it

Written by

Abdelhadi Dyouri
Are you looking for a detailed, step-by-step guide to install Webmin on Rocky Linux 9? You've come to the right place! Webmin is a powerful, free, and open-source web server management tool designed to make things easier when it comes to Linux server management. With a user-friendly web interface, Webmin allows you to manage sysadmin configurations such as user accounts, disk quotas, DNS settings, and services. You can also easily handle web servers, databases, and much more. For those using a LAMP stack on Rocky Linux, Webmin simplifies the management of Apache, MySQL, PHP applications, directly from your browser. Install Webmin on Rocky Linux 9 In this tutorial, I’ll guide you through the process of installing Webmin on a Rocky Linux server. We’ll also explore essential system administration tasks such as monitoring system performance, adding users with custom permissions, managing packages, and executing software or commands directly from Webmin’s dashboard.

Prerequisites

  • A Rocky Linux 9 server with root access or a sudo user. If you haven't noticed, we offer extremely powerful Rocky Linux servers at the globe's absolute lowest price. Take a look at our offerings and prepare for your mind to be blown 🤯.
  • Access your sever via SSH, check out How to access your server using SSH for instructions.

Note

If you want to install Webmin in minutes without the hassle, try our 1-click Webmin application. Just choose a server, click Customize Your Own Server, go to the Apps tab under Select Server Image, and select Webmin—it’s that simple! On the other hand, if you're into DIY, keep reading.

Step 1: Updating Rocky Linux System Packages

Start by checking for updates on your Rocky Linux 9 system:
sudo dnf check-update
If you see a list of packages that need to be updated, then, it's a good idea to perform a comprehensive update that installs available updates:
sudo dnf upgrade

Step 2: Install Webmin on Rocky Linux 9

To install Webmin on Rocky Linux 9, you'll download the Webmin repository setup script, and install a repository that will allow you to manage and update Webmin packages with the dnf package manager. Next, you'll update the package cache, and finally you'll use the dnf install webmin command.

Download and Run the Setup Script

Use Curl to download the setup script:
sudo curl -o setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh
Run this script:
sh setup-repos.sh
You’ll receive output similar to the following:
 Setting up Webmin repository ..
 .. done
 Webmin package can now be installed using dnf install webmin command.
We can now install Webmin using dnf .

Install Webmin

After the repositories setup, you can now install Webmin:
sudo dnf install webmin
You’ll receive output like this:
==========================================================================================================
 Package                         Architecture    Version                     Repository              Size
==========================================================================================================
Installing:
 webmin                          noarch          2.202-1                     webmin-noarch           39 M
Installing dependencies:
 perl-AutoLoader                 noarch          5.74-481.el9                appstream               20 k
 perl-B                          x86_64          1.80-481.el9                appstream              178 k
 perl-Carp                       noarch          1.50-460.el9                appstream               29 k
 perl-Class-Struct               noarch          0.66-481.el9                appstream               21 k
 perl-Data-Dumper                x86_64          2.174-462.el9               appstream               55 k
 perl-Digest                     noarch          1.19-4.el9                  appstream               25 k
 ..
 ..
Transaction Summary
==========================================================================================================
Install  73 Packages

Total download size: 49 M
Installed size: 156 M
Is this ok [y/N]:
Type y and then hit ENTER . Output:
  ...
  ...
  ...
  perl-overload-1.31-481.el9.noarch                   perl-overloading-0.02-481.el9.noarch
  perl-parent-1:0.238-460.el9.noarch                  perl-podlators-1:4.14-460.el9.noarch
  perl-subs-1.03-481.el9.noarch                       perl-vars-1.05-481.el9.noarch
  rocky-indexhtml-9.0-2.el9.noarch                    shared-mime-info-2.1-5.el9.x86_64
  tar-2:1.34-6.el9_4.1.x86_64                         unzip-6.0-56.el9.x86_64
  webmin-2.202-1.noarch

Complete!
Check that the webmin service is running properly:
sudo systemctl status webmin
● webmin.service - Webmin server daemon
     Loaded: loaded (/usr/lib/systemd/system/webmin.service; enabled; preset: disabled)
     Active: active (running) since Sun 2024-09-29 18:34:52 UTC; 16min ago
   Main PID: 15367 (miniserv.pl)
      Tasks: 1 (limit: 48896)
     Memory: 26.4M
        CPU: 10.377s
     CGroup: /system.slice/webmin.service
             └─15367 /usr/bin/perl /usr/libexec/webmin/miniserv.pl /etc/webmin/miniserv.conf

Sep 29 18:34:52 ssdnodes-test1711422637 systemd[1]: Starting Webmin server daemon...
Sep 29 18:34:52 ssdnodes-test1711422637 systemd[1]: Started Webmin server daemon.
If you see Active: active (running) in the output, this means everything went well. If you’re having trouble at this point, make sure to carefully read the previous instructions and make sure your Webmin repository was properly set up. Note: Webmin is accessible via port 10000. If you have a firewall, you need to allow Webmin's port through the firewall-cmd firewall,
Continue reading this article
by subscribing to our newsletter.
Subscribe now

A note about tutorials: We encourage our users to try out tutorials, but they aren't fully supported by our team—we can't always provide support when things go wrong. Be sure to check which OS and version it was tested with before you proceed.

If you want a fully managed experience, with dedicated support for any application you might want to run, contact us for more information.

Leave a Reply