How to Install Webmin on CentOS

Install Webmin On CentOS

Webmin: A Powerful Web-Based Control Panel for Server Management

Webmin is a robust and user-friendly web-based control panel that simplifies server administration. It provides an intuitive interface for managing various aspects of your Linux server, allowing you to perform tasks without diving into complex command-line operations. With Webmin, you can handle user accounts, packages, services, and more—all from the convenience of your web browser. Whether you’re a seasoned sysadmin or a beginner, Webmin streamlines server management and enhances productivity. 


Before we begin, ensure that you have the following prerequisites:

  1. CentOS 7 server set up according to the initial server setup guide.
  2. sudo non-root user.
  3. A password set for the root user (use sudo passwd to set it).
  4. Apache installed (follow the LAMP stack installation guide).
  5. Fully-Qualified Domain Name (FQDN) with a DNS A record pointing to your server’s IP address (configure this using DigitalOcean’s tutorial).

Step 1: Installing Webmin

1 . Add the Webmin repository by creating a new file named

sudo vi /etc/yum.repos.d/webmin.repo

2 . Add the following lines to the file:

[Webmin] name=Webmin Distribution Neutral baseurl= mirrorlist= enabled=1

3 . Import the Webmin author’s PGP key:

wget sudo rpm --import jcameron-key.asc

4 . Install Webmin:

sudo yum install webmin

5 . After installation, you’ll see the following message:

Webmin install complete. You can now login to https://your_domain:10000/ as root with your root password.

Step 2: Adding a Valid Certificate with Let’s Encrypt

  1. Access Webmin by navigating to https://your_domain:10000 in your web browser (replace your_domain with your actual domain).
  2. Log in as root using the root password.
  3. Webmin already uses HTTPS but with a self-signed certificate. Let’s replace it with a valid certificate from Let’s Encrypt.
  4. Follow Let’s Encrypt’s domain verification process using Apache (which we installed earlier).
  5. Once verified, Webmin will have a valid certificate.

Using Webmin

  1. Log in to Webmin at https://your_domain:10000.
  2. Explore the intuitive interface to manage various aspects of your server, including user accounts, packages, and more.

That’s it! You’ve successfully installed and configured Webmin on your CentOS 7 server. Enjoy the convenience of managing your server through this powerful web control panel.