In this guide we are going to show you how to successfully install cPanel on a CentOS server. We recommend using the latest version of CentOS 7 which you can find with any major VPS hosting provider. Make sure you check out the requirements section first below so you know what your VPS supports.
You'll need to make sure your server meets the minimum requirement for the installation on of cPanel which we have added below depending on the clock speed, disk space and amount of RAM you have allocated.
Perl must exist on your server before the installation script for cPanel & WHM can run successfully. If Perl does not exist during installation, the cPanel & WHM installer attempts to install Perl via the yum -y install perl command. Alternatively you can SSH into your server using pUTTy
When you install your operating system (OS), we recommend that you use the XFS® or ext4 filesystems as cPanel and WHM only test and develop on filesystems that support flock. Some network filesystems (for example, NFS) may require additional configuration in order to function properly. However, these configurations are difficult to implement successfully, cPanel and WHM do not support them.
When choosing your server you need to consider the following options
Servers that host a large number of websites with associated email addresses and databases will require more processing power, disk space, and RAM.
You can run cPanel & WHM with the minimum requirements below, but servers that host videos, music, or high-volume applications will require more processing power, disk space, and RAM.
cPanel and WHM specifically test certain browsers to ensure compatibility. Other browsers will likely function, but may display differently or experience issues with certain features. We recommend always keeping your browser up to to date.
Mobile versions of Firefox, Chrome and Safari are also compatible with cPanel & WHM.
Ok, now that you've hopefully read the minimum server requirements so cPanel and WHM can install and run effectively you need to now log into SSH. You will need to download and open pUTTy.
Now that you are logged in its recommended that you check firstly that Perl is installed by typing
If Perl is installed it should show your version, if not follow the instructions under "Install Perl" above, or type the following
yum install perl
Ok, lets install cPanel and WHM on your server. To install cPanel & WHM on your server, copy and paste the following command into SSH.
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
The installation of cPanel and WHM depends on the speed of your server, on average will take around 10-20 minutes.
Once the setup has completed you will need to login using your IP and port 2087 e.g 22.214.171.124:2087 where you will need to login using your server username (default is root) and root password. This will take you to the initial setup wizard.
This is just a guide on how to install cPanel but further measures must be added including securing your server to prevent DDOS attacks and server vulnerabilities. A good start would be to configure CPHulk on your server and install ConfigServer Security & Firewall (CSF).
Like our blog? Why not check out our other blogs at https://host2.co.uk/blog