How to Install Virtualmin on Ubuntu Server

Introduction

Virtualmin is a powerful and open-source web hosting control panel, which allows you to manage multiple virtual domains, email accounts, databases, and much more. This tutorial will guide you through the process of installing Virtualmin on Ubuntu Server, so that you can start leveraging its features to simplify your web hosting management.

Prerequisites

Before proceeding with the Virtualmin installation, make sure your Ubuntu Server is up-to-date by running the following commands:

sudo apt-get update
sudo apt-get upgrade -y

Also, ensure that your system meets the following requirements:

Step 1: Adding the Virtualmin repository

To install Virtualmin on Ubuntu Server, you first need to add the Virtualmin repository. To add the repository, follow these steps:

  1. Open a terminal session on your Ubuntu Server.

  2. Download and add the Virtualmin key to your system:

wget http://software.virtualmin.com/lib/RPM-GPG-KEY-virtualmin-6
sudo apt-key add RPM-GPG-KEY-virtualmin-6
  1. Create a new Virtualmin repository file in the /etc/apt/sources.list.d/ directory:

For Ubuntu 20.04 LTS:

sudo nano /etc/apt/sources.list.d/virtualmin.list

For Ubuntu 18.04 LTS:

sudo nano /etc/apt/sources.list.d/virtualmin.list
  1. Paste the following lines into the repository file:
deb http://software.virtualmin.com/vm/6/gpl/apt virtualmin-focal main

deb http://software.virtualmin.com/vm/6/gpl/apt virtualmin-universal main
  1. Save and exit the file by pressing CTRL+O, then CTRL+X.

  2. Update the repository cache by running the following command:

sudo apt-get update

Step 2: Installing Virtualmin

Now that you have added the Virtualmin repository, you are ready to install Virtualmin. To do this, follow these steps:

  1. Run the following command to initiate the installation:
sudo apt-get install -y virtualmin-base
  1. During the installation process, you will be prompted to set up your system hostname. Enter your desired hostname and press ENTER.

  2. The installer will then install all the required packages and dependencies. This may take several minutes to complete.

  3. Once the installation has finished, Virtualmin will be accessible at https://your-hostname:10000.

Step 3: Accessing Virtualmin

Now that you have installed Virtualmin, you can access it by opening a web browser and navigating to https://your-hostname:10000. This will take you to the Virtualmin login page.

  1. Enter your system root username and password.

  2. You will then be taken to the Virtualmin dashboard, where you can create virtual domains, email accounts, databases, and manage other server settings.

Conclusion

In this tutorial, you have learned how to install Virtualmin on Ubuntu Server. By following the steps outlined in this guide, you will have successfully installed Virtualmin and be ready to use it to manage your web hosting needs.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!