how to install virtualmin in webmin

How to Install Virtualmin in Webmin

Virtualmin is a powerful and versatile web hosting control panel that allows for easy management of multiple virtual servers on a single machine. Webmin, on the other hand, is a web-based system configuration tool for Unix-like systems. By installing Virtualmin in Webmin, you can take advantage of both tools’ capabilities to efficiently manage your server and websites. In this article, we will guide you through the steps to install Virtualmin in Webmin.

Prerequisites

Before you begin, make sure you have the following prerequisites:

  • A VPS or dedicated server running CentOS 7 or Ubuntu 18.04
  • Root access to the server

Step 1: Update your system

First, log in to your server with root privileges and update the system packages by running the following commands:

sudo yum update -y (for CentOS)
sudo apt update && sudo apt upgrade -y (for Ubuntu)

Step 2: Install Webmin

Webmin is not available in the default package repositories of CentOS or Ubuntu. You will need to add the Webmin repository to your system. Use the following commands to install Webmin:

sudo vi /etc/yum.repos.d/webmin.repo (for CentOS)
sudo nano /etc/apt/sources.list (for Ubuntu)

Add the following lines to the file:

[Webmin]
name=Webmin Distribution Neutral
baseurl=http://download.webmin.com/download/yum
enabled=1

Save the file and import the GPG key using the following command:

wget http://www.webmin.com/jcameron-key.asc
sudo rpm --import jcameron-key.asc (for CentOS)
sudo apt-key add jcameron-key.asc (for Ubuntu)

Now install Webmin by running the following command:

sudo yum install webmin -y (for CentOS)
sudo apt install webmin -y (for Ubuntu)

Step 3: Access Webmin

Once the installation is complete, you can access Webmin by visiting https://your_server_ip:10000 in your web browser. Log in with your root username and password.

Step 4: Install Virtualmin

To install Virtualmin in Webmin, you will need to run the Virtualmin installation script. To do this, execute the following command:

wget http://software.virtualmin.com/gpl/scripts/install.sh

Make the script executable by running:

chmod +x install.sh

And then run the script:

sudo ./install.sh

Follow the on-screen instructions to complete the installation process.

Step 5: Access Virtualmin

Once the installation is complete, you can access Virtualmin by visiting https://your_server_ip:10000/virtual-server/login.cgi in your web browser. Log in with your root username and password.

Conclusion

Congratulations! You have successfully installed Virtualmin in Webmin. You can now start managing your server and websites with ease using these powerful control panels.

Comments