It is very easy to Install cPanel & WHM in a VPS. Just follow the steps given below.
1. Login to VPS as root user.
2. Run the following commands to install cPanel & WHM
# cd /home
Changed directory to /home for installation.
# wget -N http://httpupdate.cpanel.net/latest
To download latest cpanel installation script.
# sh latest
This script will download and install latest cPanel.
3. Now you can access cPanel by entering <IP>:2086 in the browser.
***Installation of cPanel will take long time. So always run the script in screen.
Note:- For more details, you can follow the link given below.
http://docs.cpanel.net/twiki/bin/view/11_30/InstallationGuide/InstallingCpanel