cPanel is a commercial web-based control panel for server systems. It can help ease the burden of common system administration tasks such as website creation, database deployment and management, and more. This guide will help you get up and running with cPanel on your CentOS Linode.
Linode does not sell cPanel licenses
You’ll need to obtain a VPS license directly from cPanel or an authorized distributor. Additionally, Linode does not provide cPanel support, although you may contact cPanel support directly once you’ve purchased a license. This product must be installed on a freshly deployed CentOS Linode. These instructions should be performed as the
rootuser via SSH.
cPanel includes options for hosting your own DNS services. We generally recommend using Linode DNS services because it provides a stable, redundant, and easily managed DNS platform. If you elect to run your own DNS services on a single Linode using cPanel, please be aware that such a setup provides no redundancy.
Should you wish to provide DNS services, you’ll need to add A records for your nameservers in your WHM as described in the DNS on cPanel guide.
If you plan to use a domain name for nameservers for which you will also be hosting DNS services, you’ll need to ask your domain name registrar to create DNS glue records based on your Linode’s IP addresses before proceeding.
cPanel needs to run on the CentOS kernel. To configure your Linode to boot the CentOS kernel instead of the default Linode kernel, edit the CentOS configuration profile and select GRUB2 from the Boot Settings menu. Save the changes and reboot your Linode. For more information, see our guide on running the distribution-supplied kernel on a Linode.
NoteThe steps in this guide require root privileges. Be sure to run the steps below as
rootor with the sudo prefix. For more information on privileges, see our Users and Groups guide.
Before proceeding, make sure you’ve purchased a cPanel license. You may obtain a license from the cPanel Store. Next, log into your Linode as the
root user via SSH to its IP address (found on the “Remote Access” tab in the Linode Manager).
Disable NetworkManager before running the install script:
systemctl stop NetworkManager.service systemctl disable NetworkManager.service systemctl enable network.service systemctl start network.service
Issue the following command to download and install cPanel. Note that the installation process may take a long time to complete:
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
Verify the cPanel license:
Access cPanel at
198.51.100.0with your Linode’s IP address or domain name). If your browser displays an SSL warning message like the one below, you can ignore and continue for now. In Google Chrome, click ADVANCED, then the Proceed link as shown:
Log in with the username
rootand your root password.
Read and accept the license agreement to continue:
Provide an appropriate contact email address. Optionally, you may also enter an SMS address, AIM name, or ICQ number as well:
Enter the fully qualified domain name (FQDN) for your server:
Appropriate DNS resolvers should be automatically filled in for you, but you may wish to check the values listed against the “Remote Access” tab in the Linode Manager:
Make sure the main network device is set to
Once you have ensured that the information above is correct, press Save & Go to Step 3.
When presented with the Setup IP Addresses section, click Skip This Step and Use Default Settings to continue:
Step 4 of the cPanel installation provides options for DNS configuration.
Using Linode NameserversPermalink
If you intend to use Linode’s nameservers (or those provided by a third party) for authoritative DNS services, make sure you select Disabled in the Name Server column:
List your desired nameservers in the fields provided:
When you’ve finished, click on Save & Go to Step 5.
Using Self-Managed DNSPermalink
If you wish to operate your own DNS servers on your Linode, select either BIND or NSD under the Name Server column. You must list the nameservers you set up in the “DNS Prerequisites” section of this document. Consult Linode’s guide on setting up your own nameservers in WHM using a single IP address, available in our Set up DNS Services on cPanel guide.
When you’ve finished, click on Save & Go to Step 5.
Step 5 of the cPanel installation covers configuration options for additional cPanel services.
We recommend against installing an FTP server on your Linode, as FTP is an outdated and insecure protocol. Instead, we recommend using SFTP to upload and download files. However, you may install an FTP server if you wish. SFTP is available by default for any main cPanel username. If you need to add file access for multiple users, you may want to install Pure-FTPd during the configuration phase.
Choose whether or not to enable cPHulk. Please note, if you are locked out of cPanel due to multiple failed login attempts, you can release the lockout by following the instructions in cPanel’s cPHulk Brute Force Protection documentation:
After reviewing all options on this page, click on Save & Go to Step 6
You may choose to enable or disable support for filesystem quotas. Unless you actually need to track disk usage on a per-user basis, it’s best to leave this disabled:
Click on Finish Setup Wizard. You will be brought to the Feature Showcase page, where you can enable additional features offered by cPanel. After reviewing these options, you can click on Save Settings to enable extra features, or Exit to WHM.
That’s it! cPanel should now be properly configured on your Linode. For product support, please be sure to contact cPanel support with any further questions you may have.