How to Install and configure Webmin on CentOS 8Author: Saksham
Webmin is an open-source control panel that allows you to manage your Linux server through an easy-to-use web interface. It allows to manage users, groups, disk quotas, create files and directories as well as configure most popular services including web, FTP, email and database servers.
How to install Webmin on CentOS 8.
To be able to install packages, you need to be logged in as root or user with sudo privileges.
Installing Webmin on CentOS
The recommended method for installing Webmin on CentOS 8 is to enable the Webmin repository and install the Webmin package using the
dnf package manager.
Follow the steps below to install Webmin on CentOS:
- Create the repository file using any text editor:
sudo nano /etc/yum.repos.d/webmin.repo
Add these code into the file:/etc/yum.repos.d/webmin.repo
name=Webmin Distribution Neutral
Save the file and close the text editor.
- Now import the Webmin GPG key using the below
sudo rpm --import http://www.webmin.com/jcameron-key.asc
- Now we can install the latest version of Webmin by using below command:
sudo dnf install webminThis command automatically resolves all dependencies required. Once the installation is complete, the output displayed will be similar to this:
Webmin install complete. You can now login to https://your_server_ip_or_hostname:10000/ as root with your root password.
Now the Webmin service will start automatically.
With this you have successfully installed Webmin on your CentOS 8 server.
Adjust the Firewall
By default, Webmin listens all connections on port
10000 on all network interfaces.
To access the Webmin interface from a web browser, we have to open the Webmin port in server’s firewall .
For this run the below commands to allow traffic on port
sudo firewall-cmd --zone=public --add-port=10000/tcp
sudo firewall-cmd --runtime-to-permanent
Accessing Webmin Web Interface
Now that Webmin is installed on your CentOS server open your favourite 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 an untrusted self-signed SSL certificate .
Login to the Webmin web interface using your root 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 8 server as per your requirement.
You have successfully installed Webmin on your CentOS 8 machine. You can now start managing the services through the Webmin web interface.
To learn more about Webmin, visit their official documentation page.
Some important study notes