
Webmin is an open-source web-based server management control panel that runs on Unix-like systems. Webmin lets you perform tasks such as user account management, disk quotas, networking, system monitoring, and software management using a graphical user interface (GUI).
This article explains how to install Webmin on Rocky Linux 9 and secure the application with trusted SSL certificates.
Before you begin:
webmin.example.com.Webmin is not available in the default Rocky Linux repositories. Follow the steps below to download the latest Webmin repository setup script and install Webmin on your server.
Download the latest Webmin repository script.
Run the script using Bash.
Your output should be similar to the one below.
Install Webmin.
View the Webmin system service status and verify that it's running.
Output:
Webmin listens for HTTP connections on port 10000 by default. To secure Webmin, you must generate trusted SSL certificates for HTTPS connections. Follow the steps below to generate Let's Encrypt SSL certificates.
Allow HTTP connections on port 80 through the firewall to enable Let's Encrypt validations.
Reload the firewall to apply new connection changes.
Install the Certbot Let's Encrypt client application.
Use certbot to generate a new SSL certificate for your Webmin domain. Replace webmin.example.com with your actual domain name and webmin@example.com with your email address.
When the SSL certificate issuance process is successful, your output should be similar to the one below.
Merge the SSL certificate and private key into a single .pem file, such as, webmin.pem.
Move the new webmin.pem file to the /etc/webmin/ Webmin data directory.
Open the main Webmin configuration file /etc/webmin/miniserv.conf using a text editor such as nano.
Find and replace the keyfile value with your .pem file's location.
Restart Webmin to apply the configuration changes.
Firewalld is available and active on Vultr Rocky Linux 9 instances by default and enables you to set up new rules to filter network traffic. Follow the steps below to allow access to the Webmin port 10000 to allow HTTPS connections.
Allow the Webmin port 10000 through the firewall.
Allow the HTTPS port 443 through the firewall.
Deny insecure HTTP connections.
Reload the firewall to apply the changes.
View the firewall status to verify all active network rules.
Your output should look like the one below.
The Webmin web administration control panel is active and listens for connections on the default port 10000. Follow the steps below to access the Webmin interface.
Access your Webmin domain using a web browser.
Enter non-root sudo user credentials and click Sign In to access the Webmin control panel.
View your system information within the Webmin dashboard including the CPU usage, memory usage, disk space, running processes, and other important statistics.
Expand the System and click Software Package Updates to view packages that require updates.
Select and verify the list of packages that require updates. Then, click Update Selected Packages to update the selected packages.
Navigate to Tools and select Terminal to open a new terminal shell and verify that the following error displays.
The above error occurs because the perl-IO-Tty module is not installed on Rocky Linux 9 by default.
Access your instance's terminal session and enable the CBR repository to install the perl-IO-Tty package.
Install perl-IO-Tty.
Access the Webmin dashboard in your browser.
Navigate to Tools and select Terminal to open a new terminal shell.
You have installed Webmin on a Rocky Linux 9 and secured access to the control panel using SSL certificates. Webmin is highly extensible with tools such as Virtualmin to manage applications and configurations. For more information, please visit the Webmin documentation.
0 Comments
Be the first to comment and share your perspective with the community.