1. Run your preferred SSH client such PuTTY. Connect to your server & login as “root”.
2. Download & install cPanel/WHM by running the following commands one by one.
Installing Perl
First we need to install Perl so the cPanel installation can run. We will install the version of Perl that is currently available on the YUM software repositories by using the following command. It is assumed that you are running this command as a non-root user with sudo permissions.This command downloads and installs Perl from the YUM repository:
# cd ~# sudo yum install perl
Downloading cPanel Installation Files
Now you need to download the cPanel installation script. This small file will connect to the cPanel site and download the latest version of their software.Use the following command to download the script:
# wget http://layer1.cpanel.net/latest