How to Install Webmin on Rocky Linux
Step 1: Update Your System
It's essential to keep your system up-to-date before installing any new software. Open a terminal and run the following commands:
sudo dnf update -y
Step 2: Install Required Dependencies
Webmin requires some dependencies to be installed on your Rocky Linux system. Run the following command to install these dependencies:
sudo dnf install -y perl perl-Net-SSLeay openssl perl-IO-Tty perl-Encode-Detect
Step 3: Add the Webmin Repository
Webmin is not included in the default Rocky Linux repositories. You need to add the Webmin repository manually. First, create a new file in the /etc/yum.repos.d/
directory with a .repo
extension to add the Webmin repository:
sudo nano /etc/yum.repos.d/webmin.repo
Now, paste the following content into the file and save it:
[Webmin]
name=Webmin Distribution Neutral
# Webmin repository is currently available for CentOS 8. It should work for Rocky Linux.
baseurl=https://download.webmin.com/download/yum
enabled=1
gpgcheck=1
gpgkey=https://download.webmin.com/jcameron-key.asc
Exit the text editor by pressing Ctrl + X
, then Y
to confirm the changes, and Enter
to save the file.
Step 4: Install Webmin
Now that the repository is added, you can install Webmin using the following command:
sudo dnf install webmin -y
Step 5: Start and Enable Webmin
Once the installation is complete, start the Webmin service and enable it to start automatically on boot:
sudo systemctl start webmin
sudo systemctl enable webmin
Step 6: Firewall Configuration
If you have a firewall enabled on your Rocky Linux server (such as firewalld), you'll need to allow access to the Webmin interface. Run the following commands to open the necessary ports:
sudo firewall-cmd --add-port=10000/tcp --permanent
sudo firewall-cmd --reload
Step 7: Access Webmin
You can now access the Webmin web interface by opening a web browser and navigating to:
https://your_server_ip:10000
Replace your_server_ip
with your server's IP address. You might see a security warning in your browser because Webmin uses a self-signed SSL certificate. You can proceed to the login page by accepting the certificate.
Step 8: Log in to Webmin
Log in to the Webmin interface using your Rocky Linux server's root credentials or the username with sudo privileges. Once logged in, you can start managing your server using the Webmin web interface.
That's it! You've successfully installed Webmin on Rocky Linux, and you can now use it to manage various system administration tasks through a user-friendly web interface.