How to Install cPanel & WHM in CentOS 6

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

67 Responses

  1. Sunil says:

    HI Ravi,

    Thanks for this post. Can you please tell me, if i can install cPanel VPS license in my Dedicated server. Or i need to buy cPanel Dedicated one for my Dedicated server ?

  2. Mike says:

    Hi

    I actually got cpanel installed and working by following your tutorial. But I’m kinda scared to continue using it because cpanel is not free. Is this a free version of cpanel?

    • Ravi Saive says:

      @Mike,

      Yes, you right CPanel is not free for commercial use only, if you are using for home level for practice, you can use it without any fear..

  3. Muthukumar says:

    Hi Ravi,

    The WHM panel is License only. Is it possible can i use the WHM panel internal network for internal sites hosting. Please advice. Moreover i want to host 5 sites internal network only. Let me know any other option pls.

    Let me know how much time to install the WHM panel.

  4. raaz says:

    sh latest
    Verifying archive integrity… All good.
    Uncompressing Cpanel & WHM Installer…..
    ____ _
    ___| _ \ __ _ _ __ ___| |
    / __| |_) / _` | ‘_ \ / _ \ |
    | (__| __/ (_| | | | | __/ |
    \___|_| \__,_|_| |_|\___|_|

    Installer Version v00053 re6361667eb509a53fa18abae65182fa60dae4822

    Beginning main installation.
    The system detected an installer lock file: (/root/installer.lock)
    Make certain that an installer is not already running.

    You can remove this file and re-run the cPanel installation process after you are certain that another installation is not already in progress.

    root 3531 0.0 0.1 106032 1224 pts/0 S+ 19:15 0:00 sh -c ps auxwww |grep 3890038900
    root 3533 0.0 0.0 103276 776 pts/0 S+ 19:15 0:00 grep 389003890
    but http://your-server-ip:2087
    can’t be reached please reply

    • raaz says:

      also telnet 192.168.212.132 2087
      Trying 192.168.212.132…
      Connected to 192.168.212.132.
      Escape character is ‘^]’.
      @Ravi sir please help

      • raaz says:

        futhermore on digging my tail -f /usr/local/cpanel/logs/error_log
        ==> cpsrvd: Setting up native SSL support … Done
        ==> cpsrvd: transferred port bindings
        ==> cpsrvd: bound to ports
        [2016-05-23 19:43:10 -0700] info [cpsrvd] Internal Server Error: “-” 500 The cPanel Server operation timed out at cpsrvd.pl line 533.

        ==> cpsrvd 11.56.0.18 started
        ==> cpsrvd: loading security policy….Done
        ==> cpsrvd: Setting up native SSL support … Done
        ==> cpsrvd: transferred port bindings
        ==> cpsrvd: bound to ports
        Please help

      • Ravi Saive says:

        @Raaz,

        Will it possible for you to grant access to server? if yes, just send me credentials to [email protected], I will check and install CPanel for you..

  5. Hosting Fever says:

    Fantastic tutorial… As a novice, i was fearing to install cPanel. But thanks to your tutorial, all went successful.

  6. raj says:

    i need to install whm cpanel on a domain via shell script

  7. manpreet singh says:

    system could not fetch tiers file when i switch to runlevel 3
    http://server1p:2087 it show could not connect to host
    reply me sir

  8. manpreet singh says:

    @ravi sir when i switch to runlevel 3 and run sh latest then it show system could not fetch tiers file

    • Ravi Saive says:

      @Manpreet,

      Try downloading TIERS using wget command and place in the same place where sh latest scripts exists and also make sure you’ve correct DNS resolvers in /etc/resolve.conf file.

      # wget http://httpupdate.cpanel.net/cpanelsync/TIERS
      
  9. manpreet singh says:

    for it show message of runelevel cpanel script should be running in runlevel 3 show message that the system could not fetch the tier file if i am running script of cpanel in runlevel 3 i.e sh latest

  10. manpreet singh says:

    Verifying archive integrity… All good.
    Uncompressing Cpanel & WHM Installer…..
    ____ _
    ___| _ \ __ _ _ __ ___| |
    / __| |_) / _` | ‘_ \ / _ \ |
    | (__| __/ (_| | | | | __/ |
    \___|_| \__,_|_| |_|\___|_|

    Installer Version v00052 r675dcdd3813bad0a549b02665738ff72a765dcf5

    Beginning main installation.
    2016-03-22 15:17:15 601 ( INFO): cPanel & WHM installation started at: Tue Mar 22 15:17:15 2016!
    2016-03-22 15:17:15 602 ( INFO): This installation will require 20-50 minutes, depending on your hardware.
    2016-03-22 15:17:15 603 ( INFO): Now is the time to go get another cup of coffee/jolt.
    2016-03-22 15:17:15 604 ( INFO): The install will log to the /var/log/cpanel-install.log file.
    2016-03-22 15:17:15 605 ( INFO):
    2016-03-22 15:17:15 606 ( INFO): Beginning Installation v3…
    2016-03-22 15:17:15 392 ( INFO): CentOS 6 (Linux) detected!
    2016-03-22 15:17:15 408 ( INFO): Checking RAM now…
    2016-03-22 15:17:15 467 ( INFO): Validating that the system hostname (‘node1.techmint.com’) is a FQDN…
    2016-03-22 15:17:16 1284 (DEBUG): – ssystem [BEGIN]: /usr/bin/rdate -s rdate.cpanel.net
    2016-03-22 15:17:17 1284 (DEBUG): – ssystem [END]
    2016-03-22 15:17:17 1286 ( INFO): The system set the clock to: Tue Mar 22 15:17:17 2016
    2016-03-22 15:17:17 1296 ( INFO): The system changed the clock by 1 seconds.
    2016-03-22 15:17:17 1002 ( INFO): The installation process will now set up the necessary empty cpanel directories.
    2016-03-22 15:17:17 1022 ( INFO): The installation process will now ensure that GPG is set up properly before it imports keys.
    2016-03-22 15:17:17 1025 ( INFO): The installation process will now import GPG keys for yum.
    2016-03-22 15:17:17 923 (DEBUG): Retrieving http://httpupdate.cpanel.net/cpanelsync/TIERS to the TIERS file…
    2016-03-22 15:17:17 923 (DEBUG): Retrieving http://httpupdate.cpanel.net/cpanelsync/TIERS.asc to the TIERS.asc file…
    2016-03-22 15:17:18 1477 ( INFO): Downloading GPG public key, cPanelPublicKey.asc
    2016-03-22 15:17:21 1446 ( INFO): Valid signature for TIERS
    2016-03-22 15:17:21 119 (DEBUG): Parsing command line arguments.
    2016-03-22 15:17:21 326 ( INFO): Install type: standard
    2016-03-22 15:17:21 124 ( INFO): Running health checks prior to start.
    2016-03-22 15:17:21 823 ( INFO): Validating whether the system can look up domains…
    2016-03-22 15:17:21 835 (DEBUG): Testing cpanel.net…
    2016-03-22 15:17:21 835 (DEBUG): Testing http://www.cpanel.net...
    2016-03-22 15:17:21 835 (DEBUG): Testing updates.cpanel.net…
    2016-03-22 15:17:21 835 (DEBUG): Testing httpupdate.cpanel.net…
    2016-03-22 15:17:21 835 (DEBUG): Testing layer2.cpanel.net…
    2016-03-22 15:17:21 835 (DEBUG): Testing layer1.cpanel.net…
    2016-03-22 15:17:21 835 (DEBUG): Testing http://www.google.com...
    2016-03-22 15:17:23 869 ( INFO): The system successfully connected to the httpupdate.cpanel.net server.
    2016-03-22 15:17:23 580 (ERROR): The installation process detected that the server was in runlevel 5.
    2016-03-22 15:17:23 581 (FATAL): The server must be in runlevel 3 before the installation can continue.
    Removing /root/installer.lock.
    can anyone help me for this problem

    • Ravi Saive says:

      @manpreet,

      To get rid of this problem, switch to run level 3 mode using init 3 command and then try the installation again, it will for 100%. As you see the last 2 lines states that you’re running the installation in run level 5 and asking you to switch to run level 3.

Leave a Reply to Sunil Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.