Atlantic.Net Blog

How to Install Webmin on Rocky Linux 8

Hitesh Jethva
by Atlantic.Net (345 posts) under Dedicated Server Hosting, Tutorials
0 Comments

Webmin is a free, open-source, and web-based control panel that allows the system administrators to manage a Linux server from a web browser. It supports a wide range of Linux distributions including Linux, Solaris, FreeBSD, and more. With Webmin, you can do many things including package management, network configuration, and performance monitoring, user account creation, file management, firewall management, and more. It has become a good open-source alternative for cPanel.

In this post, we will show you how to install Webmin on Rocky Linux 8.

Prerequisites

  • A server running Rocky Linux 8 on the Atlantic.Net Cloud Platform
  • A root password is configured on your server

Step 1 – Create Atlantic.Net Cloud Server

First, log in to your Atlantic.Net Cloud Server. Create a new server, choosing Rocky Linux as the operating system with at least 2GB RAM. Connect to your Cloud Server via SSH and log in using the credentials highlighted at the top of the page.

Once you are logged in to your server, run the following command to update your base system with the latest available packages.

dnf update -y

Step 2 – Install Webmin

By default, Webmin is not included in the RockyLinux default repository, so you will need to install it from the RockyLinux installation script.

First, install required packages with the following command:

dnf install wget tar perl -y

Next, download the latest version of Webmin with the following command:

wget https://www.webmin.com/download/webmin-current.tar.gz

After downloading Webmin, extract the downloaded file using the following command:

tar xvf webmin-current.tar.gz

Next, create an installation directory for Webmin.

mkdir -p /usr/local/webmin

Next, install the Webmin by running the following script:

./webmin-1.981/setup.sh /usr/local/webmin/

During the installation, you will be asked to provide a Webmin port, admin username, and password as shown below:

Config file directory [/etc/webmin]: 
Log file directory [/var/webmin]: 

***********************************************************************
Webmin is written entirely in Perl. Please enter the full path to the
Perl 5 interpreter on your system.

Full path to perl (default /usr/bin/perl): 

Testing Perl ...
Perl seems to be installed ok

***********************************************************************
Operating system name:    Rocky Linux
Operating system version: 8.4

***********************************************************************
Webmin uses its own password protected web server to provide access
to the administration programs. The setup script needs to know :
 - What port to run the web server on. There must not be another
   web server already using this port.
 - The login name required to access the web server.
 - The password required to access the web server.
 - If the webserver should use SSL (if your system supports it).
 - Whether to start webmin at boot time.

Web server port (default 10000): 
Login name (default admin): 
Login password: 
Password again: 
Use SSL (y/n): n
Start Webmin at boot time (y/n): y
***********************************************************************
Webmin has been installed and started successfully. Use your web
browser to go to

  http://RockyLinux8:10000/

and login with the name and password you entered previously.

By default, Webmin listens on port 10000. You can check it with the following command:

ss -antpl | grep 10000

You should see the following output:

LISTEN 0      128          0.0.0.0:10000      0.0.0.0:*    users:(("miniserv.pl",pid=20906,fd=7))

Step 3 – Configure Firewall

If the firewalld firewall is installed and running in your server, then you will need to allow port 10000 through the firewalld. You can allow it with the following command:

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

Next, reload firewalld to apply the changes:

firewall-cmd --reload

Step 4 – Access Webmin Web Interface

Now, open your web browser and access the Webmin web interface using the URL http://your-server-ip:10000. You will be redirected to the Webmin login page:
Webmin login page
Provide your admin username and password and click on the Sign in button. You should see the Webmin dashboard on the following page:
Webmin Dashboard page
Click on the Tools => Command Shell. You should see the following page:
Webmin command shell page
From here, you can execute any command on your Linux server.

Click on the Tools => File Manager. You should see the following page:
Webmin file manager page
From here, you can create and manage files and directories on your server.

Click on the Tools => Text Login. You should see the following page:
Webmin text login page
From here, you can log in to your server with any user.

Click on the Un-used Modules. You should see the following page:
Webmin package installation page
From here, you can install any package on your server.

If you want to uninstall Webmin from your server, run the following script:

bash /etc/webmin/uninstall.sh

Conclusion

Congratulations! You have successfully installed Webmin to RockyLinux 8. You can now manage your Linux server easily from the web-based interface – try it on your dedicated server from Atlantic.Net!

Get A Free To Use Cloud VPS

Free Tier Includes:
G3.2GB Cloud VPS Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year


Looking for a Hosting Solution?

We Provide Cloud, Dedicated, & Colocation.

  • Seven Global Data Center Locations.
  • Flexible Private, Public, & Hybrid Hosting.
  • 24x7x365 Security, Support, & Monitoring.
Contact Us Now! Med Tech Award FTC
SOC Audit HIPAA Audit HITECH Audit

Recent Posts

How to Install Python 3.10 on Rocky Linux 8
How to Install TaskBoard on Rocky Linux 8
How to Set Up Pritunl VPN Server on Rocky Linux 8
How to Install Teampass Password Manager on Rocky Linux 8
How to Install and Configure RabbitMQ Server on Rocky Linux 8

Get started with 12 months of free cloud VPS hosting

Free Tier includes:
G3.2GB Cloud VPS Server Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year


New York, NY

100 Delawanna Ave, Suite 1

Clifton, NJ 07014

United States

San Francisco, CA

2820 Northwestern Pkwy,

Santa Clara, CA 95051

United States

Dallas, TX

2323 Bryan Street,

Dallas, Texas 75201

United States

Ashburn, VA

1807 Michael Faraday Ct,

Reston, VA 20190

United States

Orlando, FL

440 W Kennedy Blvd, Suite 3

Orlando, FL 32810

United States

Toronto, Canada

20 Pullman Ct, Scarborough,

Ontario M1X 1E4

Canada

London, UK

14 Liverpool Road, Slough,

Berkshire SL1 4QZ

United Kingdom

Resources