Today, you will learn how to install Virtualmin on CentOS 8
Virtualmin is a domain hosting and website control panel which gives the ability to create and manage many domains, as well as simplify both automation and tasks. It is based on Webmin. Virtualmin is an alternative to cPanel and Plesk
Virtualmin is available in two versions. Virtualmin GPL and Virtualmin Professional. The Virtualmin GPL version is fully free and open-source software and does not require monthly fee, compared to the Virtualmin Professional version which requires a monthly or annual fee.
Both Virtualmin versions are able to create virtual servers with fully independent users, mailboxes, web application development environments, websites, web applications, quotas, account rules, and instances of web server, database server, and create other needed software. Supported web servers include, but are not limited to, Apache or httpd.
Installation
Just follow the steps below
- Update your system
sudo dnf update -y
- Download Virtualmin install script
wget http://software.virtualmin.com/gpl/scripts/install.sh
- Make the script executable then Install Virtualmin
chmod a+x install.sh
sudo ./install.sh
- As shown below, enter a fully qualified hostname then start the installation
![Install virtualmin on CentOS 8](https://unixcop.com/wp-content/uploads/2022/02/image-120.png)
- This will launch downloading of the necessary packages and installation of the application.
![](https://unixcop.com/wp-content/uploads/2022/02/image-119.png)
- The installation should complete and exit shell with the message indicating that the installation was successful as shown below
![](https://unixcop.com/wp-content/uploads/2022/02/image-128.png)
- Configure Firewall for Virtualmin , open port 10000 as shown below
sudo firewall-cmd --zone=public --add-port=10000/tcp --permanent
sudo firewall-cmd --reload
- Access Virtulamin via opening your browser then type: http://IP_address:10000 OR http://fully_qualified_hostname:10000 which we entered before.
- Provide the username as root and the password is your root user password for the host then click Sign in
![](https://unixcop.com/wp-content/uploads/2022/02/image-118-1024x555.png)
![](https://unixcop.com/wp-content/uploads/2022/02/image-121-1024x558.png)
![](https://unixcop.com/wp-content/uploads/2022/02/image-122-1024x566.png)
- You can also enable ClamAV Virus scanning.
![](https://unixcop.com/wp-content/uploads/2022/02/image-123-1024x222.png)
- SpamAssasin is a great tool for spamming activities if you will be hosting many email domains when using Virtualmin.
![](https://unixcop.com/wp-content/uploads/2022/02/image-124-1024x264.png)
- You will also be required to choose which database you want to use in your hosting environment.
![](https://unixcop.com/wp-content/uploads/2022/02/image-125-1024x296.png)
![](https://unixcop.com/wp-content/uploads/2022/02/image-126-1024x224.png)
- Choose the size of your database depending on the size of your server.
![](https://unixcop.com/wp-content/uploads/2022/02/image-129-1024x232.png)
![](https://unixcop.com/wp-content/uploads/2022/02/image-130-1024x324.png)
- Create a default virtual server as follows:
![](https://unixcop.com/wp-content/uploads/2022/02/image-131-1024x221.png)
- Click Next to finish the Installation
![](https://unixcop.com/wp-content/uploads/2022/02/image-132-1024x148.png)
- You can access the dashboard which has many tools to manage your hosting platform.
![](https://unixcop.com/wp-content/uploads/2022/02/image-133-1024x553.png)
Create a Domain on Virtualmin
Domains here are defined as Virtual Servers
- Click on ‘Create Virtual Server’. You will then be required to provide the domain name and the admin password then click Create Server as shown below.
![](https://unixcop.com/wp-content/uploads/2022/02/image-134-1024x556.png)
- Setting Up Virtual Server in progress…..
![](https://unixcop.com/wp-content/uploads/2022/02/image-135-1024x558.png)
- From the ‘Services’ section then clicking on Configure Website, you can configure your website with many virtual server options.
![](https://unixcop.com/wp-content/uploads/2022/02/image-137-1024x559.png)
![](https://unixcop.com/wp-content/uploads/2022/02/image-141.png)
Conclusion
In this installation guide, we illustrated how to install virtualmin and how to configure it, in addition to how to use it and create a virtual server.
thanks