How To Install Webmin on CentOS 7
2 min read
Webmin is an open-source web control panel for system administration for Linux/UNIX. Webmin allows you to manage users, groups, disk quotas as well as configure most popular services including web, FTP, email and database servers.
This tutorial describes how to install Webmin on a CentOS 7 server.
Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges.
Installing Webmin on CentOS
The easiest and recommended way to install Webmin on CentOS machines is to enable the Webmin repository and install the Webmin package through the command line.
Complete the following steps to install Webmin on CentOS:
Open your editor of choice and create the following repository file:
sudo nano /etc/yum.repos.d/webmin.repo
Paste the following content into the file:/etc/yum.repos.d/webmin.repo
[Webmin] name=Webmin Distribution Neutral #baseurl=https://download.webmin.com/download/yum mirrorlist=https://download.webmin.com/download/yum/mirrorlist enabled=1
Save the file and close the editor.
Next, import the Webmin GPG key using the following command:
sudo rpm --import http://www.webmin.com/jcameron-key.asc
Install the latest version of Webmin by typing:
sudo yum install webmin
All dependencies will be resolved automatically. Once the installation finishes, the following output will be displayed:
Webmin install complete. You can now login to https://your_server_ip_or_hostname:10000/ as root with your root password.
The Webmin service will start automatically.
That’s it! At this point, you have successfully installed Webmin on your CentOS 7 server.
Adjust the Firewall
By default, Webmin listens for connections on port
10000 on all network interfaces.
If you have a firewall running on your CentOS server, you’ll need to open the Webmin port.
To allow traffic on port
10000 run the following commands:
sudo firewall-cmd --zone=public --add-port=10000/tcp --permanent sudo firewall-cmd --reload
Accessing Webmin Web Interface
Now that Webmin is installed on your CentOS server open your favorite browser and type your server’s hostname name or public IP address followed by the Webmin port
The browser will complain about the certificate being not valid because by default, Webmin uses untrusted self-signed SSL certificate.
Login to the Webmin web interface using your root or sudo user credentials:
Once you log in, you will be redirected to the Webmin dashboard, which provides basic information about your system.
From here you can start configuring and managing your CentOS 7 server as per your requirement.
To learn more about Webmin, visit their official documentation page.
If you have any question, please leave a comment below.