A clean fresh minimal installation of CentOS 7 Server
Standard hostname
Perl
2. Open Terminal / SSH
  Type below command
  # hostnamectl set-hostname cpanel.yourhostname.lan
  # yum install perl
  # yum install curl
  # curl -o latest -L https://securedownloads.cpanel.net/latest
  # sh latest
  After the last command executed, you will have this on display
When the installation completed, reboot the server might be required.
3. Completed the installation
  Access whm with the following url : http://your_server_ip:2087
Complete the installation/setup wizard.
10. Finishing setup wizard.
  At the end of setup wizard, we need to configure hostname and server as shown below
Fill the nameserver 1 and nameserver 2 fields with your servername, eg : ns1.yourdomain.com, ns2.yourdomain.com
To update the license, do it manually with following command on terminal :
 # /usr/local/cpanel/cpkeyclt
4. Change root password
  At the early installing procedure, root password can not contain special character (eg : &, %, $, etc). To change it to more spesific password,   open Terminal/SSH inside the CPanel, then change it to whatever you want.
5. Transferring accounts
  When you click the Fetch Account Button, WHM will then fetch all of the accounts on the old server and return a list of all transferrable domains. Once you have selected   the accounts that you want to migrate, click on Copy.
  In a few minutes or few hours depending on how much data needs to be transferred, your migration will finish. While the transfer is running   you will be able to see the status of each package.   Next, you will want to check WHM and CPanel to make sure that all of your clients, domains, email addresses, etc. moved over correctly.