Friday, March 14, 2008

How can I install cpanel within a VPS?

How can I install cpanel within a VPS?

1 The yum package MUST be installed before installing, the installer will not run without it. (centos/rhel/fedora/RH)

2 Add the line: "exclude=dev* udev* spamassassin* httpd* mod_ssl* perl* mysql* php* kernel*"

to /etc/yum.conf

3 Run rpm -qa and look for any entries beginning with "httpd" "mod_ssl" "mysql" "openldap" (if you wish to install openldap, you can install it later, installing it at this time, will cause problems with exim) & "php" and then use rpm -e to remove them (and all their dependencies).

4 RPMs that conflict with the cpanel services can be set to not install by editing /vz/template/distroname/distroversion/config/ostemplate.list

5 It is of extreme usefulness to add sshd to ON_SERVICES in /vz/template/centos/4/config/install-post

6 Make sure you are logged in as root and type:

# cd /home

# wget http://layer1.cpanel.net/latest

Note: For FreeBSD, you need to download and untar the latest installer package from http://www.cpanel.net/.

# sh latest

No comments: