found this great howto for setting up cPanel/WHM on centos.
Today we will be starting with the basics, how to install cPanel/WHM on CentOS. I will be using CentOS 5.5 64-bit as my base OS; this will be the same for RedHat and for 32-bit also.
First we need to start with a fresh install of CentOS, you don’t need to install anything like Apache, MySQL, etc as the cPanel installer will take care of it all for us.
When reading this tutorial, I am going to assuming you know the basics of a shell (aka using SSH as some would say, if your running Windows I recommend PuTTy).
Once we are both there, the next command will be to make the ‘cpinstall’ folder in your /home directory, you can do that by running the code below.
# mkdir /home/cpinstall
This will make the necessary folder on the file system for us to start with, next we will want to move, or as some will know it as ‘cd’ into that folder. You can do that by running the below command.
# cd /home/cpinstall
Now that we are there, we will need to download the appropriate file to start the cPanel install. This file is always updated, so by running the below command you’ll always get the newest version of cPanel installed on your server/VPS.
Now that we are upto this point, we can start the install process. Depending on how fast the system is, and how fast your network connection is, this can take anywhere from 30 minutes to 4 hours. Usually for me, I can say it takes about 2 hours. You can invoke the installer by running the command below.
# sh latest
After running that code, you should see a cPanel logo come on the screen and the install will start. There will be no need for any user intervention unless there is a problem. Once the screen looks like below you are safe to walk away.
In my case, it was telling me I need to restart my server. Once restarted, you can access the WHM by going to http://IPHERE:2086.
Your default login username is ‘root’, and your password is your root password