Sometimes you get the below error while installing cPanel

(FATAL): The installation process was unable to synchronize cPanel & WHM. Verify that your network can connect to httpupdate.cpanel.net and rerun the installer.

To fix this

1. Check your resolv.conf file and make sure that you have internet.

vi /etc/resolv.conf

2. Stop the firewall temporarily

Stop CSF:

csf -x

Stop IPTables:

service iptables stop

3. Make sure that there are no incomplete transactions in yum, run the below command to complete any leftover YUM transactions

yum-complete-transaction

4. Now start the cPanel installation again and it should not give any errors this time.