Home > English > Tutorials > How to install cpanel on centos 6

How to install cpanel on centos 6

 

 

cPanel is the most common and powerful web hosting management system on Linux platform today. Cpanel provides a simple, flexible graphic interface with many functionalities which help you easily manage your hosting and website 

Install 

Before installing cpanel, you need to install perl package

# yum install perl

After installing perl you need to take one more preliminary step. Cpanel on the server should have a full domain name, otherwise this error will occur

2016-05-06 16:00:54  461 (ERROR): Your hostname () is not set properly. Please-bash: syntax error near unexpected token `('
2016-05-06 16:00:54  462 (ERROR): change your hostname to a fully qualified domain name,-bash: syntax error near unexpected token `('
2016-05-06 16:00:54  463 (ERROR): and re-run this installer.

 

Fix it by editing hostname 

# nano /etc/sysconfig/network

Replace hostname with your domain 

# Generated by SolusVM
NETWORKING=yes
NETWORKING_IPV6=yes
IPV6_AUTOCONF=no
HOSTNAME=
cp.maxserver.com 

If you have no domain, replace it with IP address for temporary access 

# Generated by SolusVM
NETWORKING=yes
NETWORKING_IPV6=yes
IPV6_AUTOCONF=no
HOSTNAME=
ip address

After editing the file you reboot the vps

# reboot

Install cPanel

Though installing cPanel requires only a few steps, it takes a long time about an hour

Download the following installation packages

Use this command to download cPanel with WHM :

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

Use this command to download cPanel of DNS version

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

Use sh command to install the downloaded packages 

# sh latest

When the installation is completed, you can login by visiting the address IP-VPS:2087 (. for example 12.34.45.678:2087l) or the domain name (example.com:2087)

Login with your root account

username :root
password :passwd-root 

From here you can creat your cpanel user and lastly login at ipaddress / cpanel or domain / cpanel