Then update the hostname to it's proper hostname, you can find it here:
yum -y install perl
Navigate to root user's home
Then download the latest version of CPanel installer
curl -o latest -L https://securedownloads.cpanel.net/latest
Then run the installer
Wait approximately 20 mins and WHM/Cpanel will be installed.