Webmin

How To Install Webmin on Ubuntu 24.04 or Newer

Welcome back to the Greenhost.cloud blog! In today’s post, we’ll guide you through the process of installing Webmin on your Ubuntu 24.04 or newer version. Webmin is a powerful web-based interface for managing your server, allowing you to handle user accounts, configure Apache, manage DNS, and much more, all from a user-friendly dashboard. Let’s dive into the installation process step by step.

Prerequisites

Before we begin, ensure you have the following prerequisites:

  1. Ubuntu 24.04 or newer installed on your server.
  2. Sudo privileges to execute administrative commands.
  3. An Internet connection for downloading the necessary packages.

Step 1: Update Your System

First, log in to your Ubuntu server using SSH. Once logged in, it’s a good practice to update your package list and upgrade any outdated packages. Run the following commands:

sudo apt update
sudo apt upgrade -y

Step 2: Install Required Dependencies

Webmin requires several packages to be installed on your server before proceeding with the installation. Install the required dependencies by executing the following command:

sudo apt install wget apt-transport-https software-properties-common -y

Step 3: Add the Webmin Repository

Webmin is not available in the default Ubuntu repositories, so we need to add the Webmin repository to our system. First, download the Webmin GPG key:

wget -qO - http://www.webmin.com/jcameron-key.asc | sudo apt-key add -

Next, add the Webmin repository to your system’s sources list. Open the sources list file with your preferred text editor:

sudo nano /etc/apt/sources.list

Add the following line at the end of the file:

deb http://download.webmin.com/download/repository sarge contrib

Save and exit the editor (in nano, press CTRL+X, then Y, and Enter).

Step 4: Update the Package List Again

After adding the Webmin repository, update the package list again to include the new repository:

sudo apt update

Step 5: Install Webmin

Now that everything is set up, you can install Webmin with the following command:

sudo apt install webmin -y

The installation process will take a few moments. Once completed, you should see a message indicating that Webmin has been successfully installed.

Step 6: Access Webmin

By default, Webmin runs on port 10000. You can access the Webmin interface by entering the following URL in your web browser:

https://your_server_ip:10000

Replace your_server_ip with the actual IP address of your server. If you are accessing it for the first time, you may receive a warning about the site’s security certificate. This is because the certificate is self-signed. You can safely proceed by clicking on “Advanced” and then “Proceed to your_server_ip (unsafe)”.

Step 7: Log in to Webmin

You will see the Webmin login page. Use your server’s root username and password to log in. If you have created another user with sudo privileges, you can use those credentials as well.

Step 8: Configure Firewall (Optional)

If you have a firewall enabled, you will need to allow traffic on port 10000 for Webmin to be accessible. Use the following command to allow the port through UFW (Uncomplicated Firewall):

sudo ufw allow 10000

Conclusion

Congratulations! You have successfully installed Webmin on your Ubuntu 24.04 or newer server. With Webmin, you can now manage your server more easily and efficiently through a web interface. Whether you’re handling user accounts, managing services, or configuring servers, Webmin simplifies the process.