Table of Contents
<span class="warning"><p></p>
Status: Deprecated
This article covers a version of CentOS that is no longer supported. If you are currently operating a server running CentOS 6, we highly recommend upgrading or migrating to a supported version of CentOS.
Reason: CentOS 6 reached end of life (EOL) on November 30th, 2020 and no longer receives security patches or updates. For this reason, this guide is no longer maintained.
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
- Additionally, cPanel is subject to a licensing fee which may come out to be around $200 a year. the cloud provider does not cover the cost of cPanel. You can find out more about cPanel pricing here
sudo yum install perl
2012-11-01 16:00:54 461 (ERROR): Your hostname () is not set properly. Please
2012-11-01 16:00:54 462 (ERROR): change your hostname to a fully qualified domain name,
2012-11-01 16:00:54 463 (ERROR): and re-run this installer.
hostname <i>your FQDN</i>
hostname host.example.com
sudo yum install screen wget
screen
- 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. 12.34.45.678:2087l) or domain (example.com:2087)
Your login will be:
username: <i>your_server_user</i>
password: <i>your_password</i>
From there, you can create your cpanel user and finally login in at ipaddress/cpanel or domain/cpanel