Search

 

Here you can search and view our site Knowledge Base.
To find a specific article, use KB-article number format (ex. KB-1)

Article number: Article number: kb-20
Q. How To Install cPanel on a Virtual Server Running Centos 6?

A. About cPanel


cPanel is a convenient application that allows users to administer servers through a GUI interface instead of the traditional command line. Although the installation for cPanel is relatively simple, the script does take several hours to run.

Notes
- Once cPanel is installed, it cannot be removed from the server without a complete server restore. cPanel does not offer an uninstaller

Setup
Before installing cPanel on our server, we need to take two additional steps.

First we need to make sure that Perl is installed on the server

# sudo 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.

Install cPanel
Although the cPanel installation only has several steps, the installation does take a long time. Although using program "screen" is not necessary in order to install cPanel, it can be a very helpful addition to the installation process. It can be especially useful if you know that you may have issues with intermittent internet or that you will need to pause the lengthy install process.

To start off, go ahead and install screen and wget:

# sudo yum install screen wget

Once screen is installed, start a new session running:

# screen

After opening screen, you can proceed to install cPanel with WHM or a DNS only version of cPanel.

Use this this command to install cPanel with WHM:

# wget -N http://httpupdate.cPanel.net/latest

Use this command to install the DNS only version of cPanel:

# wget -N http://httpupdate.cPanel.net/latest-dnsonly

With the requested package downloaded, we can go ahead and start the script running:

# sh latest

Then close out of screen. The script, which may take one to two hours to complete will continue running while in the background—even if you close out the of server.

In order to detach screen type: Cntrl-a-d

To reattach to your screen you can use the command:

# screen -r

Once cPanel finally installs, you can access the login by going to your ip address:2087 (eg. 5.9.237.50:2087l) or domain (example.com:2087)

Your login will be:
username: your_server_user
password: your_password

In case of problems with the activation, Please make sure your server is connected to the public network and follow these instructions :

1. Login to root shell.
2. Run the command : /usr/local/cpanel/cpkeyclt.

This page has been viewed 665 times

Other questions in this category Other questions in this category
1. How to install OpenVZ Virtualization on CentOS 6 (viewed 4471 times)
2. How to install cPanel & WHM? (viewed 773 times)
3. How to Install-Uninstall Clam Antivirus? (viewed 743 times)
4. How to install wget command on CentOS? (viewed 712 times)
5. How to install Webmin on CentOS? (viewed 707 times)
6. How to enable and run MySQL/MariaDB on CentOS 7? (viewed 683 times)
7. How to Uninstall MySQL? (viewed 661 times)
8. How to install VNC on CentOS? (viewed 579 times)

Return to Search

Back to Top