Wednesday, October 20, 2010

How to install Cpanel and Fantastico in a VPS

Problem:
cPanel installs a little bit differently in a VPS that it does on your traditional server.

Solution:
Install cPanel in CentOS / Fedora VPS:

You will need yum installed on the VPS

cat /etc/redhat-release

rpm -q yum centos-yumconf





CentOS 5 :

rpm –import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

rpm -Uvh http://mirror.centos.org/centos/5.0/os/i386/CentOS/python-elementtree-1.2.6-5.i386.rpm

rpm -Uvh http://mirror.centos.org/centos/5.0/os/i386/CentOS/m2crypto-0.16-6.el5.1.i386.rpm

rpm -Uvh http://mirror.centos.org/centos/5.0/os/i386/CentOS/python-urlgrabber-3.1.0-2.noarch.rpm

rpm -Uvh http://mirror.centos.org/centos/5.0/os/i386/CentOS/sqlite-3.3.6-2.i386.rpm

rpm -Uvh http://mirror.centos.org/centos/5.0/os/i386/CentOS/python-sqlite-1.1.7-1.2.1.i386.rpm

rpm -ivh http://mirror.centos.org/centos/5.0/os/i386/CentOS/rpm-python-4.4.2-37.el5.i386.rpm

rpm -ivh http://mirror.centos.org/centos/5.0/os/i386/CentOS/libxml2-2.6.26-2.1.2.i386.rpm

rpm -ivh http://mirror.centos.org/centos/5.0/os/i386/CentOS/libxml2-python-2.6.26-2.1.2.i386.rpm

rpm -Uvh http://mirror.centos.org/centos/5.0/os/i386/CentOS/yum-3.0.5-1.el5.centos.2.noarch.rpm


Fedora 6:

rpm -Uvh http://mirrors.kernel.org/fedora/core/6/i386/os/Fedora/RPMS/python-elementtree-1.2.6-5.i386.rpm

rpm -Uvh http://mirrors.kernel.org/fedora/core/6/i386/os/Fedora/RPMS/python-sqlite-1.1.7-1.2.1.i386.rpm

rpm -Uvh http://mirrors.kernel.org/fedora/core/6/i386/os/Fedora/RPMS/rpm-python-4.4.2-32.i386.rpm

rpm -Uvh http://mirrors.kernel.org/fedora/core/6/i386/os/Fedora/RPMS/python-urlgrabber-2.9.9-2.noarch.rpm

rpm -Uvh http://mirrors.kernel.org/fedora/core/6/i386/os/Fedora/RPMS/yum-metadata-parser-1.0-8.fc6.i386.rpm

rpm -Uvh http://mirrors.kernel.org/fedora/core/6/i386/os/Fedora/RPMS/yum-3.0-6.noarch.rpm

Install cPanel :

mkdir /home/cpins
cd /home/cpins
wget http://layer1.cpanel.net/latest
sh latest

cd /usr/local/cpanel/whostmgr/docroot
rm -Rf fantastico*
wget -N http://netenberg.com/files/free/fantasticoinstaller.tgz
tar xzpf fantasticoinstaller.tgz
rm -f fantasticoinstaller.tgz

In /etc/xinetd.d/pop3ds

Change ‘disable = no’ to ‘disable = yes’

restart xinetd
restart cpanel

1 comment:

My Mine