Installing cPanel is a very easy task and only requires a few commands and a little patience.  The typical install time is around 45 minutes depending on the speed of your server and internet connection speed.

First make sure that the machine you are installing it on meets the following requirements.

  • CentOS 5.x or 6.x (6.x Preferred due to security enhancements). 32bit or 64bit will work but I suggest running CentOS 6.x 64bit
  • 1GB Dedicated Memory or more
  • 40GB of Hard Drive Space
  • At least 1 static IP Address
  • SSH root access or console access
  • puTTy or other SSH client ( Link to puTTy install tutorial is here )

When installing CentOS choose a minimal install. We do not want unneeded software that will just eat up memory.

To check to see what software is installed run  yum grouplist  from command line.

You should make sure these yum groups are not installed:

FTP Server
GNOME Desktop Environment
KDE (K Desktop Environment)
Mail Server or E-mail Server
Mono
Web Server
X Window System

To remove a yum group, run the command yum groupremove. For example, if you wish to remove Mono and Mail Server, enter:

yum groupremove "Mono" "Mail Server"

Next you should disable SELINUX as it will cause issues with cPanel. To do this edit /etc/selinux/config with your preferred editor. I like using nano as my editor because it most resembles notepad in Windows.

If your using nano as your editor. If nano is not installed then type   yum install nano -y    and it will be installed

nano /etc/selinux/config

If you prefer vi as your editor

vi /etc/selinux/config

You should edit your file to resemble this

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted

Then hit crtl+x and then y to save (nano editor)

Now that we have completed that we only have a few more steps.  Next we want to make sure CentOS is up to date so we will run

yum update -y

Once that has completed we need to install perl

yum install perl -y

Now that we have completed that we can install cPanel.

cd /home
wget -N http://httpupdate.cpanel.net/latest
sh latest

 Once cPanel has finished installing (around 45 minutes) you can login to the WHM administrator interface at http://your ip address:2086 Your login will be root and your password will be the root password for the VPS or dedicated server.

In the next article we will go over the options you will see in the WHM administrator web interface.



Leave a Reply

Your email address will not be published. Required fields are marked *

To submit solve the problem below *