Install cPanel on CentOS 7 Server

This article provides a guide for how to install cPanel on CentOS 7 server, such as VPS or dedicated servers.

Prerequisites

  • 20 GB Disk
  • 1 GB RAM
  • 64-bit CentOS 7 , RHEL 7, or CloudLinux 7
  • A valid IP address
  • A valid subnet address
  • A valid gateway IP address
  • NetworkManager must be disabled (see guide)
  • SELinux must be disabled (see guide)
  • Server hostname must be fully-qualified domain name, contain fewer than 60 total characters, and different from any cPanel account's domain.
    • Examples:
      • server.example.com
      • cloud.example.com
  • Valid cPanel/WHM license

How to Install cPanel on CentOS 7 Server

To install cPanel on CentOS 7 server, follow the steps:

  1. Login to the SSH terminal as root user.
  2. Run the following commands:
    yum -y update
    yum -y install nano perl
    echo "CPANEL=lts" >> /etc/cpupdate.conf
    echo "RPMUP=daily" >> /etc/cpupdate.conf
    echo "SARULESUP=daily" >> /etc/cpupdate.conf
    echo "STAGING_DIR=/usr/local/cpanel" >> /etc/cpupdate.conf
    echo "UPDATES=daily" >> /etc/cpupdate.conf
    cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
  3. Wait until the install script has finished (15-45 minutes).
  4. Login to the WHM interface (https://<your_ip_address>:2087)
  5. Accept the cPanel terms of service and enter the nameservers

Conclusion

You now know how to install cPanel on CentOS 7 server.

Related:

  • cpanel setup, cpanel server administration, cpanel vps
  • 9 Users Found This Useful
Was this answer helpful?

Related Articles

Disable Network Manager on CentOS 7

This article will provide the steps to disable Network Manager in CentOS 7. Network Manager is...

Disable Network Manager on CentOS 6

This article will provide the steps to disable Network Manager in CentOS 6. Network Manager is...

How to Find the IP of cPanel/WHM Server

This tutorial is designed to troubleshoot and diagnose issues with cPanel license errors. Find...

Uninstall WHMXtra on cPanel Server

This article provides a quick and direct guide for uninstalling the WHMXtra plugin from a...

How to Customize cPanel Installation

This article provides a guide for customizing a cPanel server installation, using the...