Home / How To / How to install Webmin on CentOS 8

How to install Webmin on CentOS 8



Webmin is a free, open source and web-based system configuration and management tool for Unix-like operating systems. You can configure Apache web server, Samba, DNS, Mail, FTP, database, file system and packet management with web-reduced web-based interface. Webmin is very similar to cPanel and provides an easy way to manage Linux systems through a web browser.

In this tutorial, we will show you how to install Webmin using two different methods on CentOS 8.

Prerequisites

  • A server running CentOS 8.
  • A root password is configured on your server.

Getting Started

By default, SELinux is enabled on CentOS 8 server. So you have to disable it first.

You can do this by editing / etc / selinux / config file:

  nano / etc / selinux / config 

Make the following changes:

  SELinux = disabled

Save and close the file. Then restart the server to apply the changes.

Install Webmin with RPM

First, you must install the necessary dependencies by running the following command:

  dnf install perl perl-Net-SSLeay openssl perl- Encode-Detect 

Once all dependencies are installed, download The Webmin RPM package from the Sourceforge download page with the following command:

  wget https://prdownloads.sourceforge.net/webadmin/webmin-1
.930-1. noarch.rpm

After downloading, run the following command to install Webmin:

  rpm -ivh webmin-1.930-1.noarch.rpm 

You should see the following output:

  warning: webmin -1.930 -1.noarch.rpm: Header V4 DSA / SHA1 Signature, Key ID 11f63c51: NOKEY
Verifying ... ################################ [100%]
Preparing ... ################################ [100%]
Operating system is CentOS Linux
Updating / installing ...
1: webmin-1.930-1 ################################ [100%]

The webmin installation is complete. You can now log in at https: // centos8: 10000 /
as root with your root password.

By default, Webmin runs on port 10000. You can check whether Webmin is running or not with the following command:

  netstat -ant | grep 10000 

You should see the following output:

  tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN

You can also control the Webmin process with the following command:

  ps -ef | grep webmin 

You should see the following output:

  root 2131 1 0 12:29? 00:00:00 / usr / bin / perl /usr/libexec/webmin/miniserv.pl /etc/webmin/miniserv.conf
root 2225 6290 0 12:30 pts / 0 00:00:00 grip - color = auto webmin

Installing Webmin with Yum Repository

You can also install Webmin from the CentOS Yum archive. First, create a Webmin archive with the following command:

  nano /etc/yum.repos.d/webmin.repo??19659010??Add the following lines: 

  [Webmin]
name = Webmin Distribution Neutral
mirror = https: //download.webmin.com/download/yum/mirrorlist
enabled = 1

Save and close the file. Then download and add the repository signing key with the following command:

  wget http://www.webmin.com/jcameron-key.ascebrit19459020vardrpm - import jcameron-key.asc 

Next, install Webmin by running the following command:

  dnf install webmin 

When the installation is complete, see the following output:

  Installation: webmin-1.930-1.noarch 2/2
Run the script: webmin-1.930-1.noarch 2/2
The webmin installation is complete. You can now log in at https: // centos8: 10000 /
as root with your root password.

Access Webmin in the browser

By default, Webmin listens to port 10000. So you have to open the Webmin port in firewall. You can do this with the following command:

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

Now, open your web browser and type the URL: n https: // your-server-ip: 10000 . You will be redirected to the following page:

 Webmin login

Enter your root user, password and click on Sign in the button. You should see the Webmin dashboard on the following page:

 Webmin Dashboard

From here you can easily configure and manage your CentOS 8 server.

Conclusion

Congratulations! you have installed Webmin on the CentOS 8 server. You can now easily install the LAMP / LEMP server, the FTP server and easily host your site through the Webmin web interface.

  Hitesh Jethva

About Hitesh Jethva

Over 8 years of experience as a Linux system administrator. My skills include deep knowledge of Redhat / Centos, Ubuntu Nginx and Apache, Mysql, Subversion, Linux, Ubuntu, web hosting, web server, octopus proxy, NFS, FTP, DNS, Samba, LDAP, OpenVPN, Haproxy, Amazon web services, WHMCS, OpenStack Cloud , Postfix Mail Server, Security etc.


Source link