How to Install cPanel

cPanel is the web hosting industry’s leading control panel and clearly dominates the control panel market. In this little tutorial we are going to learn how to install cPanel on a server , be it a hardware node or a VPS ( virtual private server ). First of all i am going to list  the key requirements for a successful install of cPanel.

Requirements to Install cPanel:

  • First of all you should ensure that your server has one of the operating systems because the are the only operating systems that cPanel currently supports .
    • CentOS version 4.0 onwards
    • Red Hat Enterprise Linux 4.x , 5.x and 6.x
    • Cloud Linux 5.x
  • Minimum Processing power of 266 MHz , though a higher power is strongly recommended
  • Minimum RAM of 512 MB , though it is recommended to have 1 GB or RAM to install cPanel
  • cPanel recommends that your sever has a free hard disk space of 1o GB
  • The following groups should not be installed on the server before installation of cPanel
    • FTP server
    • Any Desktop environment
    • Web Server
    • Mail Server
    • Mono
  • SELinux should also be disabled on the machine you are going to install cPanel on

Once you have satisfied yourself that your server meets the above your requirements, you can proceed to actually install  cPanel with the following steps:

Step One:

Purchase a cPanel license from cPanel store . If you want to use the trial you still need to get it from cPanel store. Every cPanel license is registered against a static IP.

Step Two:

Connect to your server with root privileges with Putty through SSH. If you do not know what putty is or how to connect to your server using Putty , you can read the Putty part of my tutorial on installing openvpn .

Step Three:

Once you are inside your server via Putty, you create a directory to install cPanel with this command

mkdir  /home/cpinstall

where cpinstall is the name of the directory. After the directory is created, you need to change to that directory with this command.

cd  /home/cpinstall

Step Four:

Now once we are inside the newly created directory , we need to download the latest installation files of  cPanel with this command:

wget  -N

Step Five:

Once the download is complete , we need to issue the following command to install cPanel:

sh latest

Once the installation starts , a cPanel logo will appear on the screen and from that point onward no user intervention will be required. Once cPanel install  is complete, you can configure Apache and PHP which are also installed along with cPanel by default. You can use EasyApache option available in WHM for this purpose.

That is all about how to install cPanel. If you have performed the above steps successfully , you can access WHM interface by entering https://IP:2087  in your preferred browser ,  where IP represents the IP address against which you got your cPanel license. Enter your user as root and your password of root to enter WHM.



Leave a Reply