Facbook Pixel

Install WHMCS

As of December 2014, Reseller Hosting is no longer available to purchase. If you wish to use WHMCS with your new server, you will need to purchase a license directly from WHMCS, and use their instructions to install it on your server. If you still have Reseller Hosting, you can still use this service for as long as you have the server.

This article assumes you have already purchased a Linux VPS with CentOS and cPanel/WHM.

This article is provided as a convenience and provides a very basic guide to getting your server configured with WHMCS. There are certainly other ways to get WHMCS installed and we strongly recommend using docs.whmcs.com as a reference.

First, you need to set up your Virtual Private Server (VPS). For more information, see Set up your server.

Once your server provisions, you need to configure cPanel®/WHM so that it works properly with WHMCS. You also need to create a reseller account within cPanel, and then configure WHMCS so that you can offer hosting packages for resale.

Grab some coffee. This process can take about an hour.

What you need:

There are a few settings you need to reference during the setup process. Throughout this guide, these settings display in green text. To expedite setup, copy and paste this table into a document to help keep track of the multiple user names and passwords you are going to create:

Server IP Address:
Reseller User Name:
Reseller Password:
Nameserver 1:
Nameserver 2:
Package Name:
Database Name:
Database User Name:
Database Password:
WHMCS License Key:
Server Hostname:
WHMCS User Name:
WHMCS Password:
Cron Job Command:

1. Setting up WHM

WebHost Manager (WHM) is a Web-based control panel you use to manage your server. Make sure you have your Server IP address ready before you try to log in. You can find your server's IP address in the Control Panel in your server account.

This procedure explains how to log in to WHM for the first time and includes some post-installation steps. You only need to perform these steps once.

For more information about WHM, see http://cpanel.net.

To Set up WHM

  1. Log in to WHM. Open a Web browser and go to:
    https://ipaddress:2087/ (where ipaddress is your server's IP address).
  2. When the WHM login screen displays, enter root as the user name and the password you defined when you set up your server account, and then click Log in.
  3. When you log in for the first time, WHM walks you through a wizard to help you set up your server. The End-User License Agreement for cPanel displays on the right. Review the license agreement, and then click I Agree/Go to Step 2.
  4. In the Server Contact E-Mail Address field, enter an administrative email address for this server, and then click Save & Go to Step 3.

  5. Click Skip This Step and Use Default Settings.

  6. In the Choose which nameservers domains on this server will use section, you can use the default nameservers. Save these as Nameserver 1 and Nameserver 2, because you need them later.

  7. Click Save & Go to Step 5, and then click Save & Go to Step 6.

  8. Click Finish Setup Wizard.

2. Configuring Your Server Using WHM

Now that WHM is set up, you need to configure it to work properly with WHMCS. If you took a break since the previous section, you'll need to log back in to WHM.

To Configure Your Server Using WHM

  1. From the Main Menu, click Software, and then click EasyApache (Apache Update).

  2. Select Previously Saved Config, and click Start customizing based on profile.

  3. Select the latest version of Apache, and then click Next Step.

  4. Depending on your operating system, complete one of the following:
    • CentOS 5 — Select None for PHP 4, and then select the latest non-experimental version of PHP 5.
    • CentOS 6 — Select the latest non-experimental version of PHP 5.

    Warning: Unless you select the correct options for PHP settings, you cannot install the IonCubeLoader outlined in the next steps.

  5. Click Next Step.

  6. Make no changes on the Short Options List page. Scroll down and click Exhaustive Options List.

  7. In the Other Modules section, select IonCubeLoader for PHP, and then click OK.
  8. In the PHP section, select GD, and then click OK.
  9. Click Save and build.

  10. Click Yes to recompile Apache and PHP now, and then click I Understand.

    Note: The build process takes approximately 15 minutes to complete. You will need to wait until this process completes.

  11. Click Save new configuration, and then click Close.

3. Configuring Your Domain Name and Creating a Product Package

Now you need to set up a domain name. If you took a break since the previous section, you'll need to log back in to WHM.

To Configure Your Reseller Hosting Domain Name

  1. From the WHM Home page, click Account Functions, and then click Create a New Account.

  2. In the Domain Information section, complete the following fields:
    • Domain — The domain name you want to use for your reseller hosting account. Be sure to update the DNS for your domain name so that it points to your server's IP address. For more information, see Setting up Nameserver DNS Using cPanel/WebHost Manager.
    • Username — Create a login name for your reseller hosting account.
    • Password — Create a password for your reseller hosting account.
    • Re-Type Password — Confirm the password for your reseller hosting account.
    • Email — Enter an administrative email address of your reseller hosting account.

    Note: Save this Reseller User Name and Reseller Password. You need them later.

    Warning: The domain name you enter in this area is transferred to WHM to produce your WHMCS license key. Changing your domain name after you have setup WHMCS breaks your WHMCS license key. Be sure to set up the account using the actual domain name you plan to use for your WHMCS installation.
  3. In the Reseller Settings section, select Make the account a reseller and Make the account own itself, and then click Create.

  4. Return to the Home page, click Resellers, and then click Reseller Center.

  5. In the Reseller Modifications section, select your reseller from the drop-down list, and then click Edit Privileges/Nameservers.

  6. For Standard Privs and Package Privs, click Add All, and then click Save All Settings.

    Note: There are many options for configuring reseller privileges on this page. You might not want to configure your reseller account with the same privileges used in this example.

  7. Return to the Home page, click Packages, and then click Add a Package.
  8. For this example, we will create a basic 2 GB hosting package. In the Package Name field, enter a name for a specific product offering. The name must begin with the Reseller Username followed by an underscore, and then a name to help you identify the package. The Package Name cannot contain spaces.
    For example, resellerusername_2gb

    Note: Save the Package Name you created. You need it later.

  9. In the Resources section, select Disk quota (MB), and then enter how much space you want to offer with this product offering. For this example, because we want to create a 2 GB package, enter 2048.
  10. Click Add.
  11. Click Logout.

4. Creating a MySQL Database for WHMCS

Now, you need to create a MySQL database under your reseller domain for your WHMCS. You will complete this process in cPanel.

To Create a Reseller Hosting MySQL Database

  1. Log in to cPanel. Open a Web browser and go to:
    https://ipaddress:2083/ (ipaddress is your server's IP address).
  2. When the cPanel login screen displays, enter your Reseller User Name and Password, and then click Log in.
  3. In the Databases section, click MySQL Databases.

  4. Enter a name for the database, and then click Create Database.
  5. Click Go Back.
  6. In the MySQL Users section, create a MySql username and password, and then click Create User.

    Note: Save this Database Name, Database Username, and Database Password. You need them later.

  7. Click Go Back.
  8. In the Add User to Database section, select the User and Database created in the previous steps, and then click Add.

  9. Select All Privileges, and then click Make Changes.

  10. Click Go Back, and then click Logout.

5. Preparing for WHMCS Installation

Next, you need to get everything ready for the WHMCS installation. WHMCS is the all-in-one client management system for reseller hosting. With WHMCS you can set up billing, hosting packages, payment gateways, server provisioning APIs, domain registration and fraud protection services.

Before you install WHMCS, you need to retrieve the WHMCS License Key and Hostname of your Virtual Private Server (VPS). Then, you need to download WHMCS and the most recent security patches.

To Get Your Hostname

  1. Log in to your server using SSH. For more information, see Log in to my server.
  2. Type the following command:
    hostname
  3. Save the host name that displays as your Server Hostname.

To Get Your WHMCS License Key and Download WHMCS

  1. Begin by logging in to the client area at http://www.whmcs.com/members/clientarea.php or obtain the latest version from your Web host if you received your key from them.
  2. Navigate to Services > Licenses & Services.
  3. Select one of your active license keys, and then click View Details.
  4. Go to the Downloads tab.
  5. Download the latest WHMCS to your local machine.

6. Installing WHMCS

Now, you can install WHMCS onto your server.

To Install WHMCS

  1. Unzip the WHMCS installation .ZIP file that you previously downloaded on your local machine.
  2. (Optional) Depending on personal preference, you can rename the whmcs directory to a different name of your choice. This changes the URL your customers use to access your WHMCS storefront. For example, if you rename the directory to clients, the URL changes to http://www.coolexample.com/clients (where coolexample.com is your domain name).

    For documentation purposes, we'll continue to refer to this directory as whmcs.

    The directory you choose is transferred to WHM to produce your WHMCS license key. Changing your directory name after you have setup WHMCS breaks your WHMCS license key. Be sure to choose the actual directory name you plan to use for your WHMCS installation.
  3. In the whmcs directory, rename the file configuration.php.new to configuration.php.
  4. Connect to your server with an FTP client using the following credentials:
    • Host — your Server IP Address
    • Username — your Reseller User Name
    • Password — your Reseller Password
  5. Upload the entire whmcs folder to the public_html directory.
  6. Using an Internet browser, go to http://www.coolexample.com/whmcs/install/install.php to run the installation process (where coolexample.com is your reseller domain name).
  7. Click I Agree to agree to the End User License Agreement.

  8. Click Continue.

  9. Enter your WHMCS License Key, Database Username, Database Password, and Database Name.
  10. Click Continue.

  11. Enter your administrator information for First Name, Last Name, Email, create a Username, and then create a Password.

    Note: Save this WHMCS User Name and WHMCS Password. You need them later.

  12. Click Complete Setup.

  13. In the Setup Daily Cron Job section, save the Cron Job Command. You need it later.

  14. Return to your FTP client and delete the install folder from the whmcs directory.
  15. Log in to cPanel using your Reseller User Name and Password. Open a Web browser and go to:
    https://ipaddress:2083/ (where ipaddress is your server's IP address).
  16. In the Advanced section, click Cron jobs.

  17. From the Common Settings drop-down list, select Once A Day.
  18. Paste the cron command you saved during WHMCS installation in the Command field.
  19. Click Add New Cron Job.

7. Configuring WHMCS

WHMCS gives you many configuration options. For this guide, we only adjust those settings needed to use the 2 GB hosting package created earlier.

For more detailed information about all of the available WHMCS configuration options, see docs.whmcs.com.

To Configure WHMCS

Log in to WHMCS and Configure General Settings

  1. Log in to the WHMCS admin area using your WHMCS User Name and Password, log in to the admin area of WHMCS located at:
    http://coolexample.com/whmcs/admin (where coolexample.com is your domain name, and whmcs is your custom whmcs directory).
  2. From the Setup menu, select General Settings.
  3. Complete the General Settings fields, and then click Save Changes.

Configure Your Server

  1. From the Setup menu, select Products/Services, and then select Servers.
  2. Click Add New Server.
  3. Complete the following fields:
    • Name — Enter a friendly name for your server.
    • Hostname — Enter your Server Hostname.
    • IP Address — Enter your Server IP Address.
    • Primary Nameserver — Enter ns1.ip.secureserver.net and 208.109.188.1 for the IP address (or your custom nameserver info).
    • Secondary Nameserver — Enter ns2.ip.secureserver.net and 208.109.188.2 for the IP address (or your custom nameserver info).
    • Type — Select cPanel.
    • Username — Enter your Reseller User Name.
    • Password — Enter your Reseller Password.
    • Secure — To continue, you must select to use SSL mode for connections.
  4. Click Save Changes.

Configure Products

  1. From the Setup menu, select Products/Services, and then select Products/Services.
  2. Click Create New Group.
  3. Create a name for your product groupings (for example, Shared Hosting), and then click Create Group.
  4. Click Create New Product.
  5. From the Product Type drop-down list, select Hosting Account.
  6. From the Product Group drop-down list, select the product grouping you created.
  7. In the Product Name field, create a name for your new product (for example, Shared Hosting - 2 GB Disk Space.)
  8. Click Continue.
  9. Click Module Settings.
  10. From the Module name drop-down list, select cPanel.
  11. In the WHM Package Name field, enter the Package Name you created earlier. Do not change any other settings.

  12. Select Automatically setup product when you manually accept a pending order.
  13. Click Save Changes.

After completing these steps, you should be able to browse to
http://coolexample.com/whmcs (where coolexample.com is your Reseller Hosting domain name) and see WHMCS in action as a potential customer would. You can click Order link to see your products.

There are additional measures you can take to help secure your website and WHMCS installation. For more information, see Securing WHMCS Installations.

Beyond this guide, there are many customizable options within WHMCS. To get the most out of WHMCS, you might need to learn more about creating payment gateways and managing your orders. For more information, see the WHMCS website.