How to Install Webmin on CentOS | CentOS Stream | RockyLinux | AlmaLinux | RHEL 7/8/9

Welcome to the article How to Install Webmin on CentOS | CentOS Stream | RockyLinux | AlmaLinux | RHEL 7/8/9. In this guide, we will walk you through the process of installing and configuring Webmin on the CentOS/CentOS Stream/RockyLinux/AlmaLinux/RHEL operating system. Webmin is a powerful web-based system management tool that allows you to manage and monitor servers through an intuitive and user-friendly web interface.

Installing and configuring Webmin can provide numerous benefits for managing your server. With Webmin, you can easily manage services such as Apache, MySQL, DNS, Quota, Firewall, and many other system components in a convenient and efficient manner.

Before we begin, make sure you have a CentOS/CentOS Stream/RockyLinux/AlmaLinux/RHEL server installed and configured. If you’re ready, continue reading to explore the process of installing Webmin on CentOS/CentOS Stream/RockyLinux/AlmaLinux/RHEL and take the first step towards managing your server more conveniently and effectively.

Applies to OS :

  • CentOS 7/8
  • CentOS Stream 8/9
  • RockyLinux 8/9
  • AlmaLinux 8/9
  • RHEL 7/8/9

Prerequisites:

  • A Linux server installed ( Ubuntu | Debian | Linux Mint)
  • User privileges: root or non-root user with root privileges

Read more:

The simplest and best way to get Webmin is to use automatic setup-repos.sh script to configure official repositories on your systems.

Step 1 : Download and Install script setup-repos.sh from Official website

This script will automatically setup repository and install GPG keys on your system, and provide webmin package for installation and easy upgrades in the future.

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

Execute the script by run the following command

sudo sh setup-repos.sh

Step 2 : Install and Configure Webmin

Webmin repository was setup in step 1, Now to Install Webmin run the following command below

sudo dnf install webmin -y

After the installation is done, you need to start and enable Webmin to auto start  after reboot time

sudo systemctl start webmin

sudo systemctl enable webmin

Check status of Webmin service, make sure it’s running

sudo systemctl status webmin

The output indicates that Webmin is up and running.

Status of Webmin Service
install-webmin-on-centos

Step 3  : Open Webmin Port on the Firewall

By default, Webmin listens on TCP port 10000, you need to open the TCP port 10000 on the Firewall by following command below

sudo firewall-cmd –zone=public –permanent –add-port=10000/tcp

sudo firewall-cmd –reload

Skip this step. If Firewall not running on the system.

Step 4 : Access and Using Webmin Control

Final, We have installed Webmin and verified its status. The only thing remaining is to log into Webmin and manage your system via address below :

http://IP-Server:10000

or

http://FQDN:10000

When you browse the URL for the first time, you will get a “Warning: Potential Security Risk Ahead” alert on the browser click on the “Advanced” button as shown.

install-webmin-on-centos
Warning Pontential Security Risk Ahead

Then click to proceed to the server and click “Accept the risk and continues

Accept-the-Risk-and-Continue
Accept-the-Risk-and-Continue

You will get the login page below. Use root credentials and click on “Sign In” to log in.

Login-Webmin

And here are your results.

Webmin-Interface
Webmin-Interface

Thank you for reading!

Video

Leave a Reply

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