How to install cPanel in centos Step by Step Guide? Print

  • Centos, cPanel installation
  • 0

cPanel is primarily designed for CentOS and Red Hat Enterprise Linux (RHEL). Below is a general guide on how to install cPanel on CentOS. Keep in mind that cPanel requires a fresh installation of the operating system, so it's recommended to perform these steps on a clean server.

Installing cPanel on CentOS:

  1. Ensure a Fresh CentOS Installation:

    • Start with a clean installation of CentOS. You can download the CentOS ISO from the official website.
  2. Update the System:

    bash command
    yum update -y
  3. Set the Hostname:

    • Set the hostname to your server's fully qualified domain name (FQDN).
    bash command
    hostnamectl set-hostname your-server-fqdn
  4. Install cPanel:

    • Download the cPanel installation script and run it.
    bash command
    cd /home curl -o latest -L https://securedownloads.cpanel.net/latest sh latest
  5. Configure Networking:

    • Ensure that your server's network configuration is accurate, and the required ports are open.
  6. Access cPanel:

    • Once the installation is complete, access cPanel by navigating to https://your-server-ip:2087 in your web browser.
  7. Complete cPanel Initial Setup:

    • Follow the on-screen instructions to complete the initial setup. You'll be prompted to set up your root password and configure other basic settings.
  8. License Activation:

    • You'll need to activate your cPanel license. You can obtain a trial license or purchase a license from the cPanel website.
  9. Access WHM (Web Host Manager):

    • Log in to WHM using the root credentials at https://your-server-ip:2087.
  10. Configure cPanel/WHM:

    • Use WHM to configure cPanel settings, create hosting accounts, and manage your server.

Always refer to the official cPanel documentation for the most up-to-date instructions, as procedures may change. Additionally, ensure that your server meets cPanel's system requirements before installation.


Was this answer helpful?

« Back