Here are the steps to install Virtualmin on a Linux server:
Prerequisites
1.Supported OS: Virtualmin officially supports CentOS, AlmaLinux, Rocky Linux, Debian, and Ubuntu. Check Virtualmin’s website for compatibility.
2.Root Access: You need root or sudo privileges.
3.Clean Installation: Start with a fresh operating system installation to avoid conflicts with existing configurations.
Installation Steps
1. Update the System
sudo apt update && sudo apt upgrade -y # For Debian/Ubuntu
sudo yum update -y # For CentOS/RHEL
2. Download the Virtualmin Installation Script
wget https://software.virtualmin.com/gpl/scripts/install.sh
3. Make the Script Executable
chmod +x install.sh
4. Run the Installation Script
•For the default installation:
sudo ./install.sh
•Optional: If you want to customize the installation or run in non-interactive mode:
sudo ./install.sh –help # Displays available options.
5. Follow the Prompts
The installation script will automatically configure your server with the necessary packages and services, including:
•Apache or Nginx
•PHP
•MySQL/MariaDB
•Postfix/Dovecot for email
•BIND for DNS (optional)
Post-Installation Steps
6. Access Virtualmin Web Interface
1.Open a web browser and go to:
https://<your-server-ip>:10000
2.Login with:
•Username: root (or your sudo user)
•Password: The system’s root password
7. Complete the Configuration Wizard
•Virtualmin will guide you through the initial setup, including:
•Database configuration
•DNS settings
•Email settings
Additional Tips
•Firewall Configuration: Allow port 10000 in your firewall if needed.
sudo ufw allow 10000 # For UFW
sudo firewall-cmd –permanent –add-port=10000/tcp
sudo firewall-cmd –reload
SSL Certificate: Configure an SSL certificate for your hostname to secure access to the Virtualmin interface.
Verify Installation
You can verify that Virtualmin is running by checking the service status:
sudo systemctl status webmin
You’re all set! Virtualmin should now be ready to manage your server.