
Virtualmin is an open-source web server administration control panel based on Webmin that lets you create, host, and deliver web applications using virtual server profiles. Virtualmin uses a graphical web-based interface that enables efficient management of server components such as databases, files, and web application files.
This article explains how to install Virtualmin on a Rocky Linux 9 server, host, and deliver web applications using virtual server profiles.
2GB RAM.virtualmin.example.com.Virtualmin is not available as a standalone package in the default Rocky Linux 9 repositories. Follow the steps below to download the latest Virtualmin installation script and install all required applications with a specific web server bundle on your server.
Change your server hostname to your Virtualmin domain. For example, virtualmin.example.com.
Create a new non-root user with sudo privileges to use with Virtualmin. For example, webadmin.
Assign the user a new strong password.
Download the latest Virtualmin installation script and save it as virtualmin.sh.
Run the script to install Virtualmin and all required components on your server. Replace LEMP with your desired web server bundle such as LAMP.
Enter Y and press Enter to continue with the installation.
Wait for at least 5 minutes for the installation process to complete and verify the installed components in your output like the one below.
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.
2-factor authentication (2FA) enables an extra layer of security for password-based authentication methods. 2FA allows you to generate a one-time code on your mobile device to use when logging in to Virtualmin to verify your identity. Follow the steps below to protect Virtualmin login with 2FA using the Google Authenticator application.
Scroll down on the left navigation bar and click your username at the bottom of the page.
Expand the Security and limits options section.
Click Enable Two-Factor For User.
Click Enroll For Two-Factor Authentication.
Scan the displayed QR code on the page with your authenticator application.
Scroll down on the left navigation bar to log out of Virtualmin.
Log in with your non-root user credentials to test 2FA.
Verify that Virtualmin requires the 2FA token to log in.
Enter the 2FA token from the app.
Press Verify to log in to the Virtualmin web administration interface.
You have installed Virtualmin on your Ubuntu 24.04 server and enabled access to the web administration control panel. You have used the control panel to perform server operations and secured the application with 2-factor authentication. For more information about Virtualmin, visit the official documentation.
0 Comments
Be the first to comment and share your perspective with the community.