Introduction
Webmin and Virtualmin are powerful web-based control panels that simplify Linux server management. This guide provides step-by-step instructions to install and configure Webmin and Virtualmin on popular Linux distributions.
Prerequisites
- Linux server with root or sudo access.
- Stable internet connection.
- Basic knowledge of Linux terminal commands.
Installing Webmin
1. Update Your System
Before installing Webmin, update the package lists and system packages:
sudo apt update && sudo apt upgrade -y # For Debian/Ubuntu
sudo yum update -y # For CentOS/RHEL
2. Add Webmin Repository
Add the official Webmin repository to your system:
For Debian/Ubuntu:
- Add the Webmin GPG key:
wget -qO - http://www.webmin.com/jcameron-key.asc | sudo apt-key add -
- Add the repository:
echo "deb http://download.webmin.com/download/repository sarge contrib" | sudo tee /etc/apt/sources.list.d/webmin.list
For CentOS/RHEL:
- Install the required dependencies:
sudo yum install -y perl perl-Net-SSLeay openssl perl-IO-Tty
- Download and install the Webmin RPM package:
wget http://www.webmin.com/download/rpm/webmin-current.rpm
sudo rpm -U webmin-current.rpm
3. Install Webmin
For Debian/Ubuntu:
sudo apt update && sudo apt install webmin -y
For CentOS/RHEL:
sudo systemctl enable webmin
sudo systemctl start webmin
4. Access Webmin
Open your browser and navigate to:
https://:10000
Log in using your root or sudo credentials.
Installing Virtualmin
1. Download the Virtualmin Installation Script
Download the script using wget
:
wget http://software.virtualmin.com/gpl/scripts/install.sh
2. Run the Installation Script
Make the script executable and run it:
sudo chmod +x install.sh
sudo ./install.sh
3. Follow the Installation Prompts
The installation script will automatically configure Virtualmin and Webmin. Answer the prompts as required.
4. Access Virtualmin
After installation, open your browser and navigate to:
https://:10000
Log in using your root or sudo credentials and complete the post-installation wizard.
Common Issues and Solutions
- Firewall Blocking Port 10000: Open the port using:
sudo ufw allow 10000/tcp # For Debian/Ubuntu sudo firewall-cmd --add-port=10000/tcp --permanent sudo firewall-cmd --reload # For CentOS/RHEL
- SSL Warnings: Add an SSL certificate to avoid browser warnings.
Examples for Different Linux Flavors
Ubuntu/Debian:
sudo apt update && sudo apt install webmin
wget http://software.virtualmin.com/gpl/scripts/install.sh
sudo ./install.sh
CentOS/RHEL:
sudo yum install perl-Net-SSLeay
wget http://software.virtualmin.com/gpl/scripts/install.sh
sudo ./install.sh
NOTE: Step-by-step guide to installing Webmin and Virtualmin control panels on various Linux distributions.