| Home » Categories » Linux Cloud Server » CentOS |
How To Install cPanel on a Virtual Server Running Centos 6 |
|
Article Number: 241 | Rating: Unrated | Last Updated: Tue, Sep 23, 2025 at 11:10 PM
|
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
SetupBefore installing cPanel, 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. 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.Luckily this error has a very easy solution. If you have a FQDN, you can type it in with the command: hostname your FQDNOtherwise, 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. hostname host.example.com Install cPanelAlthough 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: sudo yum install screen 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.
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-dTo 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: your_server_userpassword: your_password From there, you can create your cpanel user and finally login in at ipaddress/cpanel or domain/cpanel |
Attachments
There are no attachments for this article.
|
How To Setup a Rails 4 App With Apache and Passenger on CentOS 6
Viewed 3963 times since Thu, Dec 19, 2013
How To Create Nagios Plugins With Python On CentOS 6
Viewed 4006 times since Sat, Jan 4, 2014
Initial Server Setup with CentOS 6
Viewed 2445 times since Thu, Dec 26, 2013
How To Install Ruby on Rails on CentOS 6
Viewed 3340 times since Tue, Dec 31, 2013
How To Create An Off-Site Backup Of Your Site With Rsync On Centos 6
Viewed 6112 times since Sat, Jan 4, 2014
How To Work with the ZeroMQ Messaging Library
Viewed 8570 times since Sat, Jan 4, 2014
How To Install Linux, Apache, MySQL, PHP (LAMP) stack On CentOS 6
Viewed 6821 times since Thu, Dec 26, 2013
How To Install And Run A Node.js App On Centos 6.4 64bit
Viewed 10719 times since Sun, Dec 29, 2013
How To Create Nagios Plugins With Bash On CentOS 6
Viewed 3816 times since Sat, Jan 4, 2014
How To Create Nagios Plugins With Ruby On CentOS 6
Viewed 3190 times since Sat, Jan 4, 2014
|
