Requirements
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:
hostname -f
In order to change the hostname run following command :
hostname newhostname.domain.com
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
Downloading Virtualmin
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:
sh /tmp/virtualmin-install.sh
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 :