This is a short guide on how to install cPanel/WHM on CentOS. Please note that cPanel requires a fresh server installation and it cannot be uninstalled. After cPanel/WHM is installed on a server the OS needs to be re-installed/formatted in order to remove it. At this time, cPanel doesn’t provide an uninstaller. cPanel provides a 15 days trial license but you’ll need to get a paid license once this trial is over.
Before we start to install cPanel/WHM on CentOS we’ll need to make sure that our server has a fully qualified hostname. Please note that this hostname isn’t the same as the domain name that we want to host on this server. For example, if we’re going to host hostingstuff.net on this server, server.hostingstuff.net OR something.hostingstuff.net would work as a hostname. The installer will also require you to set these, however it’s better to get them properly setup before starting the install. In addition to this the server needs to have a working internet connection which is properly configured.
Please note that cPanel/WHM won’t work on a server with SELinux enabled. SELinux must remain disabled all the time, from the installation point.
In order to achieve this we’ll need to run the following commands:
yum install wget
wget -N http://httpupdate.cpanel.net/latest
If you’re trying to run the installer on a 5.x version of CentOS, RHEL, or CloudLinux, use the –force option when you run the it. It’s recommended to run the installer on the latest OS version(currently 6.x) supported in order to benefit from the latest features.
The installation process will take a while depending on the machine’s resources. Once this is done you’ll need to visit https://$IP:2087 in your web browser and login as root. You’ll need to go through the Initial Setup Wizard which will configure your server with the desired settings.