How to Install cPanel & WHM on DigitalOcean®


Last modified: July 22, 2022

Overview

This document explains how to create a DigitalOcean® Droplet™ running the cPanel & WHM drive image.

Warning:
  • cPanel & WHM requires a valid license. If this is a new installation, you can activate a free 15-day trial license.

  • In order to activate a new license, you must have a cPanel Store account with a verified email address.

  • Due to networking requirements, you cannot run an IPv6-only cPanel & WHM server. You must have at least one IPv4 address.

Create a Droplet

  1. Navigate to the DigitalOcean website.

  2. Click Log In in the top right corner, and log in to your DigitalOcean account.

    Note:

    You must first create a DigitalOcean account before you can log in.

  3. The Projects page will appear.

  4. Click Marketplace in the lefthand navigation bar. The Marketplace listings will appear.

  5. In the Search bar, enter cPanel & WHM. The cPanel & WHM listings will appear.

  6. Select the cPanel & WHM listing you wish to install:

    • For CentOS, click Create cPanel & WHM® Droplet.
    • For Ubuntu®, click Create cPanel & WHM® for Ubuntu Droplet.

    The Create Droplets page will appear.

  7. The Choose a plan section lists the available Droplet sizes with the number of CPUs, disk size, bandwidth quota, and pricing. Select a Droplet plan from the list.

    Note:

    Even though cPanel & WHM requires a minimum of 1GB of RAM and 20GB of disk space, we recommend at least 2GB of RAM and 40GB of disk space.

    For more information about hardware requirements, read our Installation Guide - System Requirements documentation.

  8. The Add block storage section allows you to configure additional storage space for your server.

    Note:
    We recommend that you skip this step until after you configure your cPanel & WHM server.

  9. The Choose a datacenter region section allows you to select the region in which your server will reside. Select the datacenter region that provides the fastest access for you and your customers.

  10. The Authentication section allows you to set either a root password or SSH keys to securely access your server.

    Important:
    • If you do not set a root password in this section, you must change the root password after you log in to the server via SSH.
    • We strongly recommend that you use SSH keys to access your server via SSH, as they provide greater security than passwords.

      To add an SSH key, perform the following steps:

      1. Select the SSH keys option.
      2. Click New SSH Key.
      3. Follow the instructions in the SSH Keys section to generate a new SSH key on your local system.
      4. Copy and paste the contents of the public key file you created into the SSH key content field.
      5. Enter a name for the key in the Name field.
      6. Click Add SSH Key.

  11. The Select additional options section allows you to enable backups, Monitoring, IPv6, and User data.

  12. The Finalize and create section allows you to duplicate your Droplet instance, set your server’s hostname, add reference tags, and select a project.

  13. Enter a fully-qualified domain name (FQDN) as the hostname for your server.

    Important:
    • This is the same FQDN that you will use as the server’s hostname when you configure WHM for the first time.
    • If your server does not use a resolvable fully-qualified domain name as the hostname, it will automatically receive one from cPanel, L.L.C. For more information, read our Automatically-Issued Hostnames documentation.

      • Do not select a hostname that begins with www or a number, or a hostname that ends with a hyphen (-).

      • You must use a fully-qualified domain name (FQDN) that uniquely identifies the server (for example, hostname.example.com or hostname.example.co.uk).

      • Do not choose a hostname that a cPanel account on your server will use.

      • Do not choose a potential service subdomain as a hostname. For more information, read our Service and Proxy Subdomains documentation.

      • Do not select a socially-unacceptable hostname. The hostname will appear in mail headers.

      • Only use lowercase, Latin-script letters in hostnames.

  14. Click Create Droplet. DigitalOcean will provision your server and its profile page will appear.

  15. Your server’s IP address will appear in the Droplets section of the Projects page. You will use this address to log in to your server.

    Note:
    This IP address is also the IP address for which you will purchase a cPanel & WHM license.

The cPanel & WHM installation process

When you create a droplet, cPanel & WHM will automatically begin installation in the background. To watch the installation progress, log in to the instance via SSH immediately after you create the droplet.

Warning:

The installation process takes about 10-15 minutes. You cannot log in to WHM until the installation process is complete.

Log in via SSH

To log in to the server via SSH, run the following command, where IPADDRESS represents the server’s IP address.

The server will respond with a Message of the Day that contains helpful links.

Change the root password

If you did not set a root password when you created the droplet, you must change the root user’s password so you can log in to WHM. To change the root user’s password, perform the following steps:

  1. Enter the passwd command.
  2. Enter a new password.
  3. Enter the new password again.

The system will update the root password.

Log in to WHM

To log in to WHM, perform the following steps:

  1. In your preferred browser, navigate to the https://IPADDRESS:2087 URL, where IPADDRESS represents your server’s IP address. The WHM interface will appear.

  2. Log in with the root username and password you set.

  3. Agree to the software license. The Get started with a Free cPanel Trial! interface will appear.

  4. You will need to log in to or create a cPanel Store account. For information about how to do this, read our How to Sign Up for a Trial License documentation.

  5. After you log in to the cPanel Store and obtain a trial license, click Server Setup in the WHM interface. The Contact Information interface will appear.

  6. Enter your contact information and nameserver information. The WHM Home interface will appear.

Warning:
cPanel & WHM requires a valid license. Since this is a new installation, you can activate a free 15-day trial license.

Configure WHM

After you agree to our software license, you’re ready to configure cPanel & WHM.

  • You may wish to change your server’s hostname to the hostname you chose when you created the droplet. For more information on how to change your server’s hostname, read our Change Hostname documentation.

  • For more information about WHM and how to configure your server, read our WebHost Manager documentation.

  • For more information on how to quickly build a website on a newly-installed cPanel & WHM server, read our From WHM to Website documentation.

Remember:
cPanel & WHM requires a valid license. Since this is a new installation, you can activate a free 15-day trial license.

Additional Documentation