Webmin is a web-based interface for system administration for Unix-like systems. It allows you to manage your server easily without needing to know the command line. In this guide, we will walk through the steps to install Webmin on Rocky Linux 8 and secure it with a free Let's Encrypt SSL certificate.

Step 1: Update Your System

Start by updating your system to ensure all packages are current:

sudo dnf update

Step 2: Install Required Packages

Webmin requires certain dependencies. Install them using the following command:

sudo dnf install -y perl perl-Net-SSLeay perl-IO-Socket-SSL

Step 3: Download and Install Webmin

Download the latest version of Webmin. You can find the download link on the Webmin download page. Use wget to download the RPM package:

wget http://www.webmin.com/download/rpm/latest/gpgkey
sudo rpm --import gpgkey
wget http://www.webmin.com/download/rpm/latest/webmin-current.rpm

Next, install the downloaded RPM package:

sudo rpm -U webmin-current.rpm

Step 4: Configure Firewall

Allow Webmin through the firewall:

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

Step 5: Start Webmin

Webmin should start automatically. If it doesn’t, you can start it with the following command:

sudo systemctl start webmin
sudo systemctl enable webmin

Step 6: Access Webmin

Open your web browser and navigate to:

https://your_server_ip:10000

You will be prompted to log in using your root or sudo user credentials.

Step 7: Install Certbot for Let's Encrypt

To secure Webmin with SSL, you need to install Certbot. Run the following commands:

sudo dnf install certbot python3-certbot-apache

Step 8: Obtain a Free Let's Encrypt SSL Certificate

Run the following command to obtain the SSL certificate:

sudo certbot --apache -d your_domain

Replace your_domain with your actual domain name. Follow the prompts to complete the process.

Step 9: Configure Webmin to Use SSL

Edit the Webmin configuration file to enable SSL:

sudo nano /etc/webmin/miniserv.conf

Find the line that starts with ssl= and change it to:

ssl=1

Save the file and restart Webmin:

sudo systemctl restart webmin

Conclusion

You have successfully installed Webmin on Rocky Linux 8 and secured it with a free Let's Encrypt SSL certificate. This setup allows you to manage your server easily and securely.

If you're looking for a reliable hosting solution for your Webmin instance, consider using Windows VPS UK. With Windows VPS, you can efficiently host your applications and ensure high performance. Whether you need VPS UK Windows or Windows Virtual Private Servers, you'll find a solution that meets your requirements.

For larger deployments or enterprise needs, explore Windows Virtual Dedicated Server Hosting or Virtual Private Server Hosting Windows. Whether you're located in the UK, Italy, or elsewhere, Windows VPS Italy and UK VPS Windows offer reliable hosting options. Visit Windows VPS Hosting UK to discover the best hosting solutions for your Webmin deployment.

Was dit antwoord nuttig? 0 gebruikers vonden dit artikel nuttig (0 Stemmen)