How to Install Webmin on CentOS 7

Install Webmin on CentOS 7

In this article, we will have explained the necessary steps to install Webmin on CentOS 7. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

Webmin is a web-based interface for system administration for Unix. By using Webmin you can easily change settings for common packages including database, webservers and managing users, groups and software packages. After installing Webmin on your system you are able to create new user accounts, manage or update packages on your system by using dashboard.

Install Webmin on CentOS

Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.

sudo yum install epel-release
sudo yum update

Step 2. Install Webmin.

First, enable Webmin repository on your system:

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

Paste the following content into the file:

name=Webmin Distribution Neutral

Now import GPG key and enable Webmin repository running below command:

sudo rpm --import

Install the latest version of Webmin by typing:

sudo yum install webmin

The output should look like the following:

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

Step 3. Setup Firewall.

Now if you are running firewall on CentOS machine then you need to open port 10000 because by default Webmin listens on port 10000:

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

Step 4. Accessing Webmin Web Interface.

Now to access Webmin open following link in your favorite browser using the following URL. The below URL contains hostname or IP address of your server followed by port number 10000 which is by default for Webmin:


Congratulation, you have learned how to install Webmin on CentOS 7. If you have any question, please leave a comment below.