
Virtualmin is an open-source web hosting control panel for managing virtual hosts, domains, email accounts, databases, and applications using a web-based graphical user interface (GUI). Virtualmin supports multiple database types, such as MySQL, PostgreSQL, and MariaDB.
This article explains how to install Virtualmin on FreeBSD 14.0 and enable access to the graphical web administration interface.
Before you begin:
virtualmin.example.com.Virtualmin does not support automatic installation scripts on FreeBSD 14.0, but supports manual installations and configuration of all dependency packages. Follow the steps below to install Virtualmin using the latest FreeBSD Ports package and configure the Webmin package to run the application on your server.
Update the package information index.
Install Virtualmin.
Output:
Configure the Webmin directories, paths, ports, administrator, and the SSL certificate.
Output:
Press Enter to configure /usr/local/webmin as the default data directory.
Press Enter to configure /var/db/webmin as the default Webmin logs directory.
Press Enter to configure /usr/local/bin/perl as the default Perl path.
Press Enter to accept and use the default Webmin port 10000.
Press Enter to use admin as the default Webmin administrator username or enter your preferred username.
Assign and confirm a new login password for the admin user.
Enter y and press Enter to enable SSL on the Webmin web interface.
Wait for the Webmin configuration process to complete.
Enable Webmin to start at system boot.
Output:
Start the Webmin service.
Output:
Virtualmin listens for connection requests on port 10000 using self-signed SSL certificates depending on your Webmin configuration. Webmin uses the miniserv.pem certificate file in the /usr/local/lib/webmin by default. Follow the steps below to secure Virtualmin with trusted SSL certificates and set up new firewall rules to allow connections to Virtualmin web administration interface.
Search the available certbot version in the default pkg repository sources.
Output:
py311-certbot is the latest Certbot package available for installation based on the above output.
Install the Certbot Let's Encrypt client tool.
Generate a new Let's Encrypt SSL certificate to use with Virtualmin. Replace virtualmin.example.com with your actual domain and hello@example.com with your email address.
Your output should be similar to the one below when successful.
Merge the new Let's Encrypt SSL certificate and private key into a single file such as webmin_cert.pem.
Move the webmin_cert.pem file to the /usr/local/lib/webmin directory.
Open the main Webmin configuration file /usr/local/lib/webmin/miniserv.conf using a text editor such as vi.
Find the following keyfile directive.
Change the value to your webmin_cert.pem path.
Save and close the file.
Enable the ipfw firewall service to automatically start at system boot.
Output:
Enable quiet mode to disable firewall messages in your standard output (STDOUT).
Output:
Change the firewall operation type to workstation.
Output:
Allow SSH, HTTPS, and Virtualmin port 10000 connections through the firewall.
Output:
Enable network connections from any host to your server.
Output:
Log all blocked network connections to /var/log/security.
Output:
View all active firewall configurations.
Output:
Start the firewall service.
Output:
Restart the Webmin service to apply changes.
If you receive the following error:
Stop the Webmin process.
Restart Webmin again to apply your configuration changes.
Virtualmin listens for connection requests on the default port 10000. Follow the steps below to access the Virtualmin web administration interface.
Access your domain on port 10000 to open the Virtualmin control panel.
Enter the Webmin administrator username and password you created earlier when prompted to log in.
Click Next within the Post-Installation Wizard to set up any additional configurations.
Find and click Dashboard on the left navigation menu to access the system performance page.
You have installed Virtualmin on FreeBSD 14.0 and enabled access to the web administration control panel to manage the server. Virtualmin supports multiple configuration options you can apply and run applications using virtual server profiles. For more information, visit the Virtualmin documentation.
0 Comments
Be the first to comment and share your perspective with the community.