How to Install Webmin on Ubuntu Server
Webmin is a web-based system administration tool for Unix/Linux servers. It provides a graphical interface to manage your server through any web browser. This guide shows you how to install Webmin on Ubuntu 20.04+ and 22.04+.
Prerequisites
- Ubuntu 20.04 LTS / 22.04 LTS / 24.04 LTS
- Root or sudo access
- Internet connection
- At least 500MB free disk space
Method 1: Install Using the Official Repository (Recommended)
Step 1: Update System
sudo apt update
sudo apt upgrade -y
Step 2: Install Required Dependencies
sudo apt install -y apt-transport-https ca-certificates software-properties-common wget
Step 3: Add Webmin Repository
Add the Webmin GPG key and repository:
wget -q http://www.webmin.com/jcameron-key.asc -O- | sudo tee /etc/apt/trusted.gpg.d/webmin.asc
sudo sh -c 'echo "deb [trusted=yes] https://download.webmin.com/repository sarge contrib" > /etc/apt/sources.list.d/webmin.list'
Step 4: Install Webmin
sudo apt update
sudo apt install -y webmin
Method 2: Install Using DEB Package
Download and install the DEB package directly:
wget https://sourceforge.net/projects/webadmin/files/webmin/2.202/webmin_2.202_all.deb
sudo dpkg -i webmin_2.202_all.deb
If there are missing dependencies, fix them:
sudo apt install -f
Accessing Webmin
Open in Browser
Navigate to your server’s IP address:
https://192.168.1.100:10000
Or using hostname:
https://your-server-name:10000
Login Credentials
Login with your system username and password:
- Username: Your sudo user
- Password: Your user password
Configure Firewall
If using UFW (Uncomplicated Firewall):
sudo ufw allow 10000/tcp
sudo ufw reload
Check UFW status:
sudo ufw status
Managing Webmin Service
Start Webmin
sudo /etc/webmin/start
Stop Webmin
sudo /etc/webmin/stop
Restart Webmin
sudo /etc/webmin/restart
Check Status
sudo systemctl status webmin
Using Systemd
- Start:
sudo systemctl start webmin - Stop:
sudo systemctl stop webmin - Restart:
sudo systemctl restart webmin - Enable on boot:
sudo systemctl enable webmin - Disable:
sudo systemctl disable webmin
Updating Webmin
To update to the latest version:
sudo apt update
sudo apt upgrade -y webmin
Uninstalling Webmin
sudo /etc/webmin/stop
sudo systemctl stop webmin
sudo apt remove --purge -y webmin
sudo rm -rf /etc/webmin
sudo rm -rf /usr/share/webmin
Useful Webmin Features
- System information and statistics
- User and group management
- Disk quotas management
- Apache configuration
- MySQL/MariaDB databases
- BIND DNS server configuration
- Package management
- File manager
- Backup and restore
- Network firewall configuration
- Log file viewer
Troubleshooting
Can’t Access Webmin
- Check if Webmin is running:
sudo systemctl status webmin - Check firewall:
sudo ufw status - Check port 10000:
sudo lsof -i :10000
SSL Certificate Warning
This is normal for self-signed certificates. Accept the warning or add a trusted SSL certificate.
Login Failed
Use your system username and password, not root. Webmin doesn’t use the root user by default.
Conclusion
You now have Webmin installed on your Ubuntu server! You can manage your server through a user-friendly web interface at:
https://your-server-ip:10000