How to Install Webmin on CentOS 7

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.

Prerequisites

Before continuing with this tutorial, make sure you are logged in as root or user with sudo privileges .

Installing Webmin on CentOS: 1 Step Install

Copy/paste and hit enter via SSH console:

(echo "[Webmin]
name=Webmin Distribution Neutral
baseurl=http://download.webmin.com/download/yum
enabled=1
gpgcheck=1
gpgkey=http://www.webmin.com/jcameron-key.asc" >/etc/yum.repos.d/webmin.repo;
yum -y install webmin)

Installing Webmin on CentOS: Manual Method

Another 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:

  1. 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.
  1. 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 --permanentsudo 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 10000:

https://your_server_ip_or_hostname:10000/

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 or sudo user credentials:

Webmin Login Form

Once you log in, you will be redirected to the Webmin dashboard, which provides basic information about your system.

Webmin Dashboard

From here, you can start configuring and managing your CentOS 7 server as per your requirement.

Conclusion

You have successfully installed Webmin on your CentOS 7 machine. You can now install FTP server or LAMP /LEMP stack and start managing the services through the Webmin web interface.

To learn more about Webmin, visit their official documentation page.

source: https://linuxize.com/post/how-to-install-webmin-on-centos-7/

Tags: ,