Free Control Panels

How to Install Webmin on RHEL 8/CentOS 8

Introduction

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 8 server.

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

install Centos 8

How to Install CentOS 8

 

Complete the following steps to install Webmin on CentOS:

1: Install Webmin on RHEL 8 Manually

sudo yum -y install @perl

I recommend you install Webmin on RHEL 8 from this method to get the latest installation of Webmin.

Visit Webmin releases page to check for the latest release of Webmin and download it.

sudo yum -y install wget
wget  http://www.webmin.com/download/webmin-current.tar.gz

Uncompress downloaded file

tar xvf webmin-current.tar.gz
rm -f webmin-current.tar.gz

Move the resulting folder to

sudo mv webmin* /usr/local/webmin

Change your working directory to /usr/local/webmin/ and run Webmin installer script.

cd /usr/local/webmin/
sudo ./setup.sh

Set

  • Config file directory
  • Log file directory
  • Full path to Perl
  • operating system – type and version
  • Web server port (default 10000)
  • Login name (default admin)
  • Login password
  • SSL

See below installation output.

$ sudo ./setup.sh

Allow Webmin Firewall Port

To be able to access Webmin Web interface from the network, you need to allow TCP port 10000 in the firewall.

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

Access Webmin Interface

Now that you have installed Webmin on RHEL 8, open your server URL/IP address port 10000, e.g

https://YOUR-IP-ADDRESS:10000

If you get “Invalid Certificate”  warning, click Continue Anyway

 

Note: When logging in for the first time, you will see an “Invalid SSL” error. This is because the server has generated a self-signed certificate. Allow the exception to continue so you can replace the self-signed certificate with one from Let’s Encrypt.

 

Login with username specified during installation and its password

login Webmin

The default page shown is the summary of your system details.

How to Install Webmin on RHEL 8/CentOS 8

2: Install Webmin on RHEL 8 from YUM repository

Add repository content to your RHEL 8 system.

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

Paste below to the file

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

Then import repository GPG key:

sudo rpm --import http://www.webmin.com/jcameron-key.asc

Because the current release of Webmin doesn’t validate RHEL 8 system, we can temporarily change release and rever once the installation is done.

sudo rpm --import http://www.webmin.com/jcameron-key.asc

Then install webmin using yum package manager.

sudo yum -y install webmin

To get the package version and other details, use:

$ rpm -qi webmin 

Access Webmin Interface

Now that you have installed Webmin on RHEL 8, open your server URL/IP address port 10000, e.g

https://YOUR-IP-ADDRESS:10000

If you get “Invalid Certificate”  warning, click Continue Anyway

Login with username specified during installation and its password

How to Install Webmin on RHEL 8/CentOS 8

 

Conclusion

You now have a secured, working instance of Webmin and you’ve used the interface to create a user and update packages. Webmin gives you access to many things you’d normally need to access through the console, and it organizes them in an intuitive way. For example, if you have Apache installed, you would find the configuration tab for it under Servers, and then Apache.

Explore the interface, or read the Official Webmin wiki to learn more about managing your system with Webmin.

 

About the author

Avatar

jon snow

Jon is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, and currently a content creator for ERRORHAT who loves working with computers and strongly believes in sharing knowledge.

Add Comment

Click here to post a comment