Knowledgebase

Find frequently asked questions and setup guides by searching or by browsing the categories.

What Webmin Is

Webmin is a system administration panel, not a hosting panel. Each part of the system is a module: one edits the SSH server's settings, another manages disks, another shows logs. Webmin writes the same configuration files you would edit by hand, so you can switch between the browser and the shell. For hosting many websites with mail and DNS per customer, the same project offers Virtualmin, which is built on top of Webmin. Hosting panels such as cPanel are compared in cPanel vs Plesk.

Before You Install

  • A supported system: the Webmin repository script supports the Debian family (Debian, Ubuntu) and the Red Hat family (AlmaLinux, Rocky Linux).
  • No other panel: do not install Webmin on a server that already runs a hosting panel; both would change the same files.
  • A snapshot: take one first, so you can return to the clean system. See snapshot vs backup.

Install from the Webmin Repository

The Webmin download page provides a small setup script, webmin-setup-repo.sh, that adds the project's repository and signing key. Download it to a file, read it, then run it:

curl -o webmin-setup-repo.sh https://raw.githubusercontent.com/webmin/webmin/master/webmin-setup-repo.sh
less webmin-setup-repo.sh
sudo sh webmin-setup-repo.sh

Then install the package. On Ubuntu and Debian:

sudo apt install webmin --install-recommends

On AlmaLinux and Rocky Linux:

sudo dnf install webmin

Check the download page for the current script address before you run these commands. Because Webmin now comes from a repository, it updates with the rest of the system.

Log In on Port 10000

Webmin listens on port 10000 over HTTPS with a self-signed certificate. Open the port for your own address only (next section), then browse to https://your_server_ip:10000. Log in as root or, on a default install, as a user with full sudo rights, with that account's Linux password. On a server where only key login is used, set a password for that user first with sudo passwd deploy.

Restrict Access

A panel with root access should not be open to the whole internet. Before you change the firewall, make sure SSH stays allowed, and test a new SSH session in a second terminal before you close the first. On Ubuntu and Debian with ufw, allow the port only from your own IP:

sudo ufw allow from YOUR_IP to any port 10000 proto tcp

On AlmaLinux and Rocky Linux with firewalld:

sudo firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="YOUR_IP" port port="10000" protocol="tcp" accept'
sudo firewall-cmd --reload

Webmin has its own list as a second layer: under Webmin Configuration, IP Access Control, allow only listed addresses. In the same module, Two-Factor Authentication turns on one-time codes, and SSL Encryption lets you replace the self-signed certificate. Keep Webmin updated, because security fixes arrive through the package.

Useful Modules

ModuleWhat it manages
System InformationLoad, memory, disks
Software PackagesInstalls and updates
Users and GroupsAccounts and groups
Bootup and ShutdownServices at boot
Scheduled Cron JobsCron entries
System LogsLog files
Upload and DownloadFiles

Modules for software that is not installed, such as a mail server, appear under Un-used Modules.

Settings from the Command Line

Webmin's own server reads /etc/webmin/miniserv.conf. The port= line sets the port, and an allow= line limits access to listed addresses. After a change:

sudo systemctl restart webmin

If you move Webmin to another port, open that port in the firewall before the restart and close 10000 afterward.

Update or Remove Webmin

Updates arrive with sudo apt update && sudo apt upgrade or sudo dnf upgrade. To remove it, use sudo apt remove webmin or sudo dnf remove webmin, then delete the firewall rule. Logs of Webmin's own server are in /var/webmin/; general log locations are in Linux log files.

Was this answer helpful?
Loading...