Virtualmin GPL is a free, open source and powerful web hosting control panel for Linux and BSD based system. It is based on the well-known web based system administration control panel named Webmin. Virtualmin provides a powerful interface to host & manage multiple websites on your server.
Virtualmin does not require any special hardware but we recommend that you install Virtualmin in a freshly installed server for the best experience.
Before proceeding to the install let us set the hostname. You must be logged-in using root account to change the host name.
To check the current host name type following command in your terminal:
In order to change the hostname run following command :
Replace newhostname with desired name for this server and domain.com with your actual domain.
Before installing any package on your system, it is recommended that you update the system and available packages. Run the following command to do so:
yum clean all
yum update -y
Virtualmin can be installed in multiple ways but its recommended to use an install script. The install script will automatically install required packages. To download install script type following command:
wget http://software.virtualmin.com/gpl/scripts/install.sh -O /tmp/virtualmin-install.sh
The install script will be saved under the /tmp/ directory as virtualmin-install.sh.
Executing the Script
After the install script has been successfully downloaded, execute the script file. To make the install script executable use the following command:
chmod +x /tmp/virtualmin-install.sh
Now the install script is ready. To start the installation execute the install script using following command:
The process will present a license agreement , to resume the process press Y to agree to license agreement and then press ENTER .
Installing & Configuring Firewall
To protect your server against hacking attempts it is recommended to install a firewall if there isn’t one present already. Execute the following command to install the firewall :
yum install firewalld
After installing firewalld now unmask , enable and start the firewall using following commands:
systemctl unmask firewalld
systemctl enable firewalld
systemctl start firewalld
To allow public access to Virtualmin using port 10000 (which is default port), add port 10000 to your firewall rules using following command:
firewall-cmd --permanent --zone=public --add-port=10000/tcp
After allowing the port reload firewall rules using this command:
Then your should see the output “Success”. If there is something else in the output then you should better fix that because it can create multiple problems.
Accessing the Control Panel
Congragulations, you have successfully installed Virtualmin on your system. So let’s do some fun stuff. To access virtualmin via web browser type the following address:
https://yourIPaddress:10000 (replace yourIPaddress with your public IP address)
in case you are on local system type:
The page will display a warning “Your Connection Is Not Secure” or “Warning: Potential Security Risk Ahead”. Just ignore it and continue by clicking ok Advanced button and then Accept The Risk.
Now you will be able to see the Webmin login page. To login simply enter the username and password of root. Incase of gui version if haven’t set root password or you don’t know it then use following commands in terminal:
sudo su root
Provide your current account password. Now from here you will be able to set the password using following command:
After that you will see a Log In page to the Webmin. Simply enter the username root and password of the system to get access to the control panel.
Now you are logged-in. You will able to see a dashboard with Post Installation Wizard.
Virtualmin Documentation: https://www.virtualmin.com/documentation
Webmin Documentation: http://www.webmin.com/docs.html