You can install cPanel on CentOS 7 or CentOS 8 by logging in as 'root' user via SSH.
# cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
The installer needs about 45-60 minutes to finish. Once it is finished, you can log in to WHM via the following link:
* Where 'yourip' is your servers IP address.