Virtualmin GPL is a free and open source powerful and flexible web hosting control panel. It is based on the well-known web based application named Webmin. It features a CLI, full API, excellent security features and great support. It provides a collection of very easy to use tools for managing web sites, mailboxes databases, web application development and more.
Requirements
Virtualmin does not require any special hardware but we recommend that you install Virtualmin in a freshly installed server for the best experience.
We will need to set a hostname for our machine and we can do so with following command :-
First of all check current hostname using this command:
hostname -f
In order to change the hostname run following command :-
hostname newhostname.domain.com
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 -y update
You will see something like this:
HP_NO_IMG/data/uploads/users/3b85855d-36a1-4010-b06d-1cae5485254b/634923335.png” alt=”” />
Downloading Virtualmin
VIrtualmin can be installed in many ways but we recommend you to install Virtualmin using an automated script which will will automatically install every packages take responsibility to complete them . To do so download script file using wget command .
wget http://software.virtualmin.com/gpl/scripts/install.sh -O /tmp/virtualmin-install.sh
HP_NO_IMG/data/uploads/users/3b85855d-36a1-4010-b06d-1cae5485254b/113150462.png” alt=”” />
The file saved under the /tmp/ directory as virtualmin-install.sh.
Executing the Script
After the Virtualmin Script has been successfully downloaded, let’s execute the script file. To do so we will need to make script file executable using following command .
chmod +x /tmp/virtualmin-install.sh
Now the file is made executable so now we will execute it using sh as shown below .
sh /tmp/virtualmin-install.sh
The above command will start the Virtualmin installation and it will arise a license agreement , to install the Virtualmin press Y and then press ENTER .
HP_NO_IMG/data/uploads/users/3b85855d-36a1-4010-b06d-1cae5485254b/777680738.png” alt=”” />
Firewall
A Firewall is installed in most of the systems as firewall solution, here we will construct the firewall program to allow the port 10000 to accessible from the internet . It will make virtualmin accessible for connected networks and to do so run following command.
firewall-cmd --permanent --zone=public --add-port=10000/tcp
If in case you have not installed firewalld on your system then first install firewalld using this command :-
yum install firewalld
After installing firewalld now unmask , enable and start the firewall with below commands:-
systemctl unmask firewalldsystemctl enable firewalldsystemctl start firewalld
After allowing 10000 port run this command
firewall-cmd --reload
Then you will see an output “Success”.
Accessing the Virtualmin
Now our Virtualmin is installed successfully and port 10000 is also exposed by the firewall program, we will point our web browser to our server as https://yourIPaddress:10000 in our web browser.
HP_NO_IMG/data/uploads/users/3b85855d-36a1-4010-b06d-1cae5485254b/1780095011.png” alt=”” />
This will display a warning that your connection is not private but you just have to simply ignore it and continue by clicking Advanced ** button and then click on **yourIPadress(unsafe) which will be at the bottom of the browser .
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 of Virtualmin.
HP_NO_IMG/data/uploads/users/3b85855d-36a1-4010-b06d-1cae5485254b/64650030.png” alt=”” />
If in case you do not remember your password then we suggest you to please don’t attempt to brutally login like guessing the password, or keep repeating the login attempts. Because if you do so your IP address will be locked out for several minutes.
So it is better to change the password and to do so run the following command :-
passwd
And create a new password then Log In to the webmin.
Now you are logged in and you will see a dashboard with Post Installation Wizard.
HP_NO_IMG/data/uploads/users/3b85855d-36a1-4010-b06d-1cae5485254b/1705795324.png” alt=”” />
Post Installation
Click on Next to continue to post installation wizard which is necessary to configure packages and elements of the Virtualmin . Here we will need to select the options that we require to setup our virtualmin.
Choose yes to **Preload Virtualmin Libraries ** as shown below.
HP_NO_IMG/data/uploads/users/3b85855d-36a1-4010-b06d-1cae5485254b/2068014785.png” alt=”” />
Then click on Next and continue to post installation wizard now you will have to setup MYSQL databse server.
Choose Yes to Run MYSQL databse Server and choose No for the Run PostgresSQL database server (you can select yes if you want ) as shown below.
HP_NO_IMG/data/uploads/users/3b85855d-36a1-4010-b06d-1cae5485254b/1107293413.png” alt=”” />
Click on **Next ** to continue to post installation wizard and by clicking Next you will have to set a MYSQL password .
Enter the password you want .
HP_NO_IMG/data/uploads/users/3b85855d-36a1-4010-b06d-1cae5485254b/60915709.png” alt=”” />
Click on Next ** to continue to post installation wizard and with clicking you will have to choose the MYSQL database size . You can choose any option for database size but we recommend you to choose option **Large System (1G) which is mostly used .
HP_NO_IMG/data/uploads/users/3b85855d-36a1-4010-b06d-1cae5485254b/1265832077.png” alt=”” />
Click on Next ** to continue to post installation wizard here you will have to set **Primary nameserver which is used for resolvability so simply enter the nameserver or you can select Skip Check for resolvability if you want.
Click on Next to continue to post installation wizard here you’ll be asked to choose the Password Storage Mode, we recommend you to choose Only store hashed passwords for security matters.
Click on **Next ** and you will see that our post installation configuration is now completed.
Click on Next and now you can adjust the settings just made on the Features and Plugins and Spam and Virus Scanning Pages.
You can Manage Enabled Features and Plugins by clicking on that as shown below.




