Main menu


How To Install cPanel on a Server or VPS Running Centos 6

How To Install cPanel on a Server or VPS Running Centos 6

How To Install cPanel

Before installing cPanel on our droplet, we need to take two additional steps.
First we need to make sure that Perl is installed on the server:

 yum install perl
After installing perl we need to take one more preliminary step. cPanel is very picky about making sure that server that it is installed on has a Fully Qualified Domain Name. To that effect, we need to provide it with a valid hostname. Skipping this step will inevitably get you the following, very common, error:

2014-10-01 16:00:54  461 (ERROR): Your hostname () is not set properly. Please
2014-10-01 16:00:54  462 (ERROR): change your hostname to a fully qualified domain name,
2014-10-01 16:00:54  463 (ERROR): and re-run this installer.
Luckily this error has a very easy solution. If you have a FQDN, you can type it in with the command:

hostname your FQDN
Otherwise, if you want to proceed with the cPanel installation but do still lack the hostname, you can input a temporary one. Once cPanel is installed, you will be able to change the hostname to the correct one on one of the first setup pages.


Install cPanel

Although the cPanel installation only has several steps, the installation does take a long time.
you can proceed to install cPanel with WHM or a DNS only version of cPanel.
  • Use this this command to install cPanel with WHM: 
    cd /home 
    wget -N
    sh latest 
  • Use this command to install the DNS only version of cPanel:
    cd /home 
    wget -N
Once cPanel finally installs, you can access the login by going to your ip address:2087 (eg. or domain (
Your login will be:
username: your_server_user
password: your_password
From there, you can create your cpanel user and finally login in at ipaddress/cpanel or domain/cpanel.

How To Install cPanel on a Server or VPS Running Centos 6



skybird said…

Thanks for posting this useful content, Good to know about new things here, Let me share this, . cisco training in pune
Nice Blog. Thank you for Sharing. We are the best erp software providers in chennai. For more details call +91 9677025199.
erp in chennai | erp providers chennai
Table Of Contents