How to Install cPanel on DigitalOcean
Last modified: January 29, 2020
This document explains how to create a DigitalOcean® Droplet™ running the cPanel & WHM drive image.
Create a Droplet
Navigate to the DigitalOcean website and log in
Navigate to the DigitalOcean website.
Then, click Log In in the top right corner. The Project page will appear.
Go to Marketplace
In the left sidebar, click Marketplace.
The Marketplace page will appear.
Choose the cPanel image
The Marketplace page lists all available solutions available for DigitalOcean Droplets.
Search for cPanel on Centos 7.6 and click Details. The cPanel & WHM Droplet page will appear.
Click Configure cPanel & WHM Droplet. The Project page will appear.
Choose a Droplet size
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.
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 dsk space.
For more information about hardware requirements, read our Installation Guide - System Requirements documentation.
Add backups and block storage
The Add backups and Add block storage sections allow you to configure automatic backups and transfer spaces for your server.
Choose a datacenter region
The Choose a datacenter 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.
Select additional options
The Select additional section allows you to add the following options:
Select the services that you need for your Droplet.
Add your SSH keys
The Add your SSH keys section allows you to use SSH keys to securely access your server.
We strongly recommend that you use SSH keys to access your server.
If you do not use an SSH key, DigitalOcean will send you a
root password via email, which poses a security risk.
To add an SSH key, perform the following steps:
Click New SSH Key. The New SSH key window will appear.
On your workstation, open a Terminal session.
id_rsa.pubfile does not exist, perform the following steps:
cd ~/.ssh/command to change to your
id_rsaas the new file name.
Enter a passphrase, and then confirm it.
cat ~/.ssh/id_rsa.pubcommand again.
Copy the results and paste them into the SSH key content text box in the New SSH key window.
Enter a name for the key in the Name text box.
Click Add SSH Key.
A success message will appear.
Select final options
The Finalize and create section allows you to duplicate your Droplet instance, set your hostname, add reference tags, and select a project.
Enter a fully-qualified domain name (FQDN) as the hostname for your server and click Create.
Do not select a hostname that begins with
wwwor 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,
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 example,
Do not select a socially-unacceptable hostname. The hostname will appear in mail headers.
Only use lowercase, Latin-script letters in hostnames.
DigitalOcean will provision your server and its profile page will appear.
Your server’s IP address appears in the ipv4 area of the profile page. You will use this address to log in to your server in the next step.
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 and a URL where you can log in to cPanel & WHM.
Use the login URL
To log in to WHM, perform the following steps:
In your preferred browser, navigate to the cPanel & WHM login URL. A new interface will appear.
Agree to the software license. A new interface will appear.
Enter the your contact information and nameserver information. The WHM Home interface will appear.
Change the root user’s password
The system evaluates the password that you enter on a scale of 100 points.
0indicates a weak password, while
100indicates a very secure password.
Some web hosts require a minimum password strength. A green password Strength meter indicates that the password is equal to or greater than the required password strength.
Click Password Generator to generate a strong password. For more information, read our Password & Security documentation.
To change the
root user’s password, perform the following steps:
Navigate WHM’s Change Root Password interface (WHM >> Home >> Server Configuration >> Change Root Password).
Enter and confirm the new password in the appropriate text boxes.
Click Change Password.
rootuser’s password, you can log in to WHM at the following URL, where
IPADDRESSrepresents your server’s IP addreess:
For more information about WHM and how to configure your server, read our WebHost Manager documentation.
After you agree to our software license, you’re ready to configure cPanel & WHM.
For more information, read our WebHost Manager documentation.
For more information about how to quickly publish a website on a newly-created cPanel & WHM server, read our From WHM to Website documentation.