Virtualmin can replace cPanel as your web hosting control panel. This guide will walk you through the process of installing Virtualmin on a Debian 12 VPS provided by UltaHost. By following these steps, you’ll have a fully functional Virtualmin setup to manage your web hosting environment efficiently.
Prerequisites
Before we begin, ensure you have the following:
- A VPS running Debian 12 (UltaHost offers suitable options)
- Root access to your VPS
- A domain to access Virtualmin
- Basic knowledge of Linux command line
How to Install Virtualmin on Debian 12 with UltaHost VPS
Step 1. Signup with UltaHost VPS
Virtualmin supports the latest Debian 12 and Ubuntu 24.04 LTS. For this guide, we’ll focus on Debian 12.
When selecting a VPS from UltaHost, keep in mind the following requirements:
- Minimum 2 GB RAM (4 GB recommended for optimal performance)
- At least 20 GB of disk space
- A clean, freshly installed Debian 12 system
Check out my step-by-step guide on setting up VPS on UltaHost.
Step 2. Connecting to Your VPS
To begin the installation process, you’ll need to connect to your VPS using SSH. Use the following command, replacing `your_server_ip` with the IP address provided by UltaHost:
ssh root@your_server_ip
Enter your root password when prompted.
You can also use a free SSH client like Bitvise.
Step 3. Updating Server Packages
Before installing Virtualmin, it’s crucial to update your server’s package list and upgrade existing packages. Run the following commands:
apt update apt upgrade -y
This ensures your system is up-to-date and ready for the Virtualmin installation.
Step 4. Installing Virtualmin
Now that your system is prepared, let’s install Virtualmin:
Download the Virtualmin installation script:
sudo sh -c "$(curl -fsSL https://software.virtualmin.com/gpl/scripts/virtualmin-install.sh)" -- --bundle LAMP
The installation process may take 10-30 minutes, depending on your server’s performance and internet connection speed.
The selected package bundle is LAMP and the size of install is
full. It will require up to 2 GB of disk space.
Exit and re-run this script with –help flag to see available options.
Continue? (y/n)
Choose y when prompted.
Step 5. Post-Installation Configuration
After the installation completes, you’ll need to configure some settings:
Access Virtualmin through your web browser by navigating to https://your_server_ip:10000
Log in using your root credentials
Follow the post-installation wizard, which will guide you through:
- Memory use
- ClamAV for antivirus protection
- SpamAssassin for spam filtering
- Database servers
- Set database password
- DNS configuration
- Password storage
- MariaDB database size
- SSL key directory
Step 6. Creating a Custom Subdomain for Virtualmin Access
For easier management, create a custom subdomain to access Virtualmin:
Go to Webmin > Networking > Network Configuration.
Set your hostname and DNS servers (it should be your server IP).
Then apply configuration.
Next, we will set the subdomain on Virtualmin.
- In Virtualmin, go to Create Virtual Server.
- Enter a subdomain (e.g., `cp.yourdomain.com`)
- Set the Administration password.
- Uncheck Accept mail for domain.
- Configure the necessary DNS settings.
- Set up an SSL certificate for this subdomain as described in the next step.
Step 7. Setting Up SSL Certificates
To secure your Virtualmin installation, set up SSL certificates using Let’s Encrypt:
1. In the Virtualmin interface, go to Manage Virtual Server > Setup SSL Certificate.
2. Select Let’s Encrypt as the provider.
3. Enter your domain or subdomain.
4. Set an A record for the subdomain in your domain registrar.
5. Click Request Certificate.
Now you can access Virtualmin using your custom subdomain, making it more convenient and professional.
Future Use: With Virtualmin set up, you can easily install and manage various web applications like WordPress and Joomla.
Watch on YouTube
Conclusion
You’ve successfully installed and configured Virtualmin on your Debian 12 VPS from UltaHost. This powerful control panel will help you manage your web hosting environment efficiently. Remember to keep your system and Virtualmin updated regularly for optimal performance and security.
For more advanced configurations and troubleshooting, refer to the official Virtualmin documentation or seek support from the Virtualmin community forums.
If you have any questions, just comment them down.