
Webmin is a web-based interface for managing Unix-like systems through a browser, eliminating the need to manually edit configuration files from the command line. It allows you to easily perform system administration tasks such as adding users, setting disk quotas, managing software packages, configuring networks, and controlling databases. Webmin is highly extensible, supporting a wide range of open-source tools to enhance server functionality. Installing Webmin on Debian 12, a stable and secure long-term support release, provides a user-friendly and efficient way to manage your server with greater control and flexibility.
This article explains how to install Webmin on Debian 12 and enable access to the web-based graphical interface. If you're working with a different Linux distribution, you might also find these guides helpful: How to Install Webmin on Ubuntu 24.04 and How to Install Webmin on Rocky Linux 9.
Before you begin:
webmin.example.com.Webmin is not available in the default package repositories on Debian 12. Follow the steps below to download the latest Webmin repository information script and install the application.
Download the latest Webmin repository setup script and save it as setup-repos.sh.
Run the script using the Bash interpreter.
Enter Y and press Enter when prompted to proceed with the repository installation. When successful, your output should be similar to the one below.
Update your system's package information index to apply the Webmin repository information.
Install Webmin and the default recommended packages.
Enable the Webmin service to automatically start at system boot.
Start the Webmin service.
View the Webmin system service status and verify it's running.
Output:
Webmin is active and running based on the above output information.
Webmin runs on the default TCP port 10000 and serves the web administration control panel using HTTP. Generate trusted SSL certficates to secure network connections to the Webmin interface using HTTPS. Follow the steps below to install the Certbot Let's Encrypt client and enable Webmin to use trusted SSL certificate files.
Allow HTTP traffic on the default port 80 to enable Let's Encrypt validations.
Restart UFW to apply the new changes.
Install the Certbot Let's Encrypt client tool.
Generate a new SSL certificate for your domain. Replace webmin.example.com with your domain and webmin@example.com with your actual email address.
Your output should be similar to the one below when successful.
Certbot stores the SSL certificate and private key files in the /etc/letsencrypt/live/webmin.example.com/ directory based on the above output.
Combine the SSL certificate and private key contents into a single file such as webmin_key_cert.pem.
Move the file to the /etc/webmin/ Webmin data directory.
Open the /etc/webmin/miniserv.conf Webmin configuration file using a text editor like nano.
Find the keyfile directive and replace the value with your webmin_key_cert.pem SSL certificate path.
Restart the Webmin service to apply the configuration changes.
Uncomplicated Firewall (UFW) is available and active on Vultr Debian instances by default. Follow the steps below to set up new firewall rules and allow network connections to the Webmin interface.
View the UFW status and verify that it's active.
Allow network connections to the default Webmin port 10000.
Allow incoming HTTPS connections.
Deny incoming HTTP connections to disable insecure requests.
Reload UFW to apply the firewall changes.
View the UFW status and verify the new connection rules are available.
Output:
Webmin listens for incoming connection requests on the default port 10000 based on the /etc/webmin/miniserve.conf configuration. Follow the steps below to access the Webmin web administration interface on port 10000.
Access your domain on port 10000 using a web browser such as Chrome.
Enter your non-root sudo user credentials when prompted to log in to the Webmin interface.
Click Dashboard on the main navigation menu to access the system information summary.
You have installed Webmin on a Debian 12 and secured the control panel interface with trusted Let's Encrypt SSL certificates. Webmin lets you use a GUI to manage and monitor your system applications and services. For more information, please visit the Webmin documentation.
0 Comments
Be the first to comment and share your perspective with the community.