
Virtualmin is an open-source flexible web hosting control panel designed for Linux and UNIX systems. It allows you to manage multiple domains, email accounts, databases, and applications using a single web-based interface. Virtualmin supports various web server, databases, and mail server applications to securely deliver services using virtual servers.
This article explains how to install and secure Virtualmin on a Debian 12 server.
Before you begin:
virtualmin.example.com.Virtualmin is not available in the default package repositories on Debian 12. Follow the steps below to download the latest installation script and install Virtualmin on your server.
Enter your domain as the new hostname on your server. Replace virtualmin.example.com with your actual domain.
View the active server hostname to verify your changes.
Output:
Download the latest Virtualmin installation script.
Enable execute permissions on the script.
Run the installation script and use the default LAMP package.
Enter Y and press Enter when prompted to verify your package information to install Virtualmin.
Wait between 5 to 10 minutes for the Virtualmin installation process to complete on your server. Your output should look like the one below when successful.
Follow the steps below to generate trusted Let's Encrypt SSL certificates and secure all network connections to the Virtualmin web administration interface.
Stop the Apache service to ensure Certbot can bind to port 80.
Install the Certbot package Let's Encrypt client to manage your SSL certificates.
Request a new SSL certificate using your domain. Replace virtualmin.example.com and virtualmin@example.com with your actual details.
Enter U and press the Enter when prompted key to update the default SSL key type to ECDSA and apply changes to the /etc/webmin/miniserv.conf configuration file.
Your output should look like the one below when the SSL certificate request is successful.
Restart the Webmin service to apply your configuration changes.
Start the Apache service.
Virtualmin uses the firewalld utility to manage firewall processes on your server. Follow the steps below to allow all necessary Virtualmin ports and other services through the firewall.
View the firewalld service status and verify that it's running.
Output:
View all allowed ports in the firewall configuration.
Output:
View all allowed services.
Output:
Virtualmin runs on the default TCP port 10000 by default. Follow the steos below to access the Virtualmin web administration interface and create a new virtual server.
Access your domain on port 10000 to open the Virtualmin control panel interface.
Enter your sudo user account details to log in to the Virtualmin interface.
Click Next within the Post-Installation Wizard to set up any additional configurations on your server.
Find and click Dashboard on the left navigation bar to access the system performance page.
You have installed Virtualmin on your Debian 12 server and secured the web administration control panel with Let's Encrypt SSL certificates. You can use Virtualmin to manage your web hosting environment and create virtual servers to deliver web applications or services. For more information and configuration options, please visit the Virtualmin documentation.
0 Comments
Be the first to comment and share your perspective with the community.