I wrote this this guide using a VPS purchased from SmokyHosts.com. Apply this information at your own discretion.
If you find terms that are misused, information not accurate, or that I am just dead wrong, you probably have some general knowledge about these things. So, Please feel free to correct/elaborate on this guide/how to/tutorial, or just tell me I suck. Either way.
Why I want to install cPanel on a minimum OS install of CentOS 4? Because I failed to create a backup before reinstalling my VPS (from SmokyHosts.com), Which completely F***ed up the VPS 5 minutes after I logged in for the first time. So I was left with a fresh minimum install of centos-4-x86_64 and no cPanel. I know a little about Linux, but nothing about servers, web hosting, VPSs, or virtual anything, etc... and despite this, It was surprisingly more difficult then I thought to install cPanel. The yum dependencies were the biggest problem. But for what it is worth, this is how I managed to do it...
Installing cPanel requires yum to be installed and configured correctly. Since it is not currently installed, yum and required dependencies will be needed. Install yum's dependencies.
Import CentOS4 RPM signing key:
Code: Select all
# rpm -import [url]http://mirror.centos.org/centos/4/os/x86_64/RPM-GPG-KEY-centos4[/url]
Code: Select all
# rpm -Uvh [url]http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/sqlite-3.3.6-2.x86_64.rpm[/url]
# rpm -Uvh [url]http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/python-sqlite-1.1.7-1.2.1.x86_64.rpm[/url]
# rpm -Uvh [url]http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm[/url]
# rpm -Uvh [url]http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/python-elementtree-1.2.6-5.el4.centos.x86_64.rpm[/url]
Install yum:
Code: Select all
# rpm -Uvh [url]http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/yum-2.4.3-3.el4.centos.noarch.rpm[/url]
Run commands:
Code: Select all
# yum makecache
# yum erase glibc-dummy-centos-4
# yum update
cPanel can now be installed. Create an install directory, and then download and run the install script. After cPanel is installed, you can log in to WHM and configure the VPS.
Install Cpanel/WHM:
Code: Select all
# mkdir /home/cpinstall
# cd /home/cpinstall
# wget [url]http://layer1.cpanel.net/latest[/url]
# sh latest
Using a web browser, log in to WHM @http://your.ip.address:2086
Despite being a giant pain in my ass, I have learned some important concepts of VPSs, web hosting, etc... but I think the most important thing I have learned is...
ALWAYS BACKUP YOUR DATA!
References:
cPanel installation guide
swsoft forum post 1
swsoft forum post 2
webhostingtalk forum post
hostlibrary article