How to Install Virtualmin on CentOS 7/ RHEL 7
Virtualmin is an advance, powerfull and flexible web hosting control panel for your Linux and UNIX system. It is the virtual host magement module of the well-known Open Source web-based server management system Webmin. With virtualmin, you can manage multiple virtual hosts, multiple virtual domains, mailboxes, database, applications and other stuff from its comprehensive and friendly web interface.
Virtualmin is a comprehensive and excellent replacement for your cPanel and Plesk control panels . Virtualmin offersr the same features that you can find from the two mentioned control panels such as account creation, domain management, dns management, MySQL management and much more. Virtualmin also offers a control panel for non-root users for management of their hosting account.
I am assuming that you have already done the basics steps for your new server.
Preparations
Clean yum cache packages and cache headers. This will prevent potential errors due to caching.
1 |
yum clean all |
Update yum packages as a good practice
1 |
yum -y update |
Downloading the Script Installer
I always stress the importance of the tmp folder, you can also use the opt folder if you plan to keep the source files. After changing directory, we will instruct our machine to download the installer script.
1 2 |
cd /tmp wget http://software.virtualmin.com/gpl/scripts/install.sh |
Download and install Perl
The script acts as a batch file in windows, the yum downloads are already included however, you may encounter errors specifically a missing Perl module error since the scripts needs Perl to run.
We can easily download the missing Perl using our trusty yum command.
1 |
yum install perl -y |
Install Procedure
We are going to run a schell script that we have downloaded from the makers of webmin/virtualmin. Our downloaded script is not yet shell executable and requires a quick command to change the scripts’ security settings into an executable file and finally run it.
1 2 3 4 |
chmod +x install.sh #run the script ./install.sh |
Installation is fully automated and you will be first prompted about the list of the supported OS for this installer. In case your OS is not listed, kindly stop the installation by answering a “no” on the question and contact the developers. http://www.virtualmin.com/os-support.html
1 2 3 4 5 6 7 8 |
The systems currently supported by install.sh are: CentOS/RHEL/Scientific Linux 7 on x86_64 CentOS and RHEL 5-6 on i386 and x86_64 Scientific Linux 6 on i386 and x86_64 Debian 6, 7, and 8 on i386 and amd64 Ubuntu 10.04 LTS, 12.04 LTS, and 14.04 LTS on i386 and amd64 Amazon Linux 2012.03 on i386 and x86_64 FreeBSD 7.0 and 8 on i386 and amd64 |
Once complete, your virtualmin panel is accesable on port 10000 (ex https://12.34.56.78:10000/)
Linking CSF/LFD to Virtualmin
If you have installed CSF / LFD, you can add the user interface to manage this module inside webmin/virtualmin.
Openup Webmin Configuration and then locate “Webmin Modules”.
Assuming you have already installed CSF using this guide, we just need to install from local file. the file we need to load is located at /etc/csf/csfwebmin.tgz
After adding CSF as a new module, a new link named “ConfigServer Security and Firewall” will appear under System menu in our webmin. This will load up ConfigServers control panel.
Enjoy!