Step 1 : Access the server's command line as the 'root' user via SSH.
You can use Putty to access it.
Step 2 : (Set your server hostname )
To set your hostname run the below command
Command :
hostname server.yourdomain.com
Step 3 : ( Run the cPanel Installation Command )
Command :
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
(It takes 5-30 Minutes to finish depending upon your server configuration )
Step 4 : (After Installation done Login into your server)
Open in browser: https://YOUR-IP:2087/ (Ex: https://121.25.65.296:2087/)
N.B: don't use http use https it will not open with http
Then login using username root and password same as your root password.