Login/Register

How to: Install cPanel on CentOS 7

created by BasicSysAdmin

Tags: Linux, CentOS, CentOS 7, cPanel

Jun 19, 2016

Introduction

This guide will show you how to install cPanel on a clean installation of CentOS 7. There are a few prerequisites so make sure you follow them closely. As cPanel is a rather large program, it can take sometime. If you do not already have a license, you can buy one from LicensePal. You can also get a free 15 day trail.

Prerequisites

In order to follow this tutorial, you will need the following

  • Sudo Privileges

  • Clean Minimal Install of CentOS 7

  • Setup a Static IP

  • Have a Fully Qualified Domain

  • Fully Updated

  • Disabled Firewall


  • Installing cPanel

    After you have followed all of the prerequisites mentioned above, you can start the installation using this command:
    cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest

    This command will go and download the latest install script from cPanels website.

    When the installation has completed, you should see a message like this

    You can now go to the URL mentioned in the terminal to continue the installation.

    The Website

    If you go to the URL, you will see a login page like this:

    You can just login to this with your root username and password. After this, you will see a page asking you to accept the license agreement.

    On the page after accepting the license, you will be able to complete the setup networking form

    The next step is to add any additional IPs if you require them.

    For this, if you wanted to add an entire subnet e.g. 10.0.1.*, you could enter an IP address of 10.0.1.0/24. If you do this, it may take awhile to add them.
    On the next page, you will be asked to configure your nameserver preferences. You may aswell leave these as defaults

    You can then go to configure the services options - You can also leave these as defaults

    Finally, you will be asked if you would like to enable quotas. I would recommend you enable this.

    Feature Showcase

    On this page, you can enable some other optional features provided by cPanel.

    Done

    And thats it, you have installed cPanel. Dont forget to reboot to enable the quotas

    If you are using the trial license, make sure to purchase a full license at a discounted rate from LicensePal