Advertisement
Home arrow Blog arrow Installing cPanel/WHM on a vanilla CentOS 5 Server
Installing cPanel/WHM on a vanilla CentOS 5 Server
Written by wiredgorilla   
Tuesday, 19 February 2008
Article Index
Installing cPanel/WHM on a vanilla CentOS 5 Server
Page 2
Page 3
Page 4
Page 5
After having initially installed your latest CentOS5 OS on your server you need to take a few steps to get cPanel/WHM running securily on your server.

Log into root via SSH and disable selinux

nano /etc/selinux/config

and change

SELINUX=enforcing

to

SELINUX=disabled

You now need to either reboot for this to take effect, or disable it using this command:

setenforce 0

Then check if it is disabled:

cat /selinux/enforce

If this returns 0, SELinux is disabled. 

Also you need to stop your firewall IP tables

service iptables stop

iptables -L -n

 

Ok, so now after you have ordered a cPanel licence you need to initiate the install with those commands

mkdir /home/cpins
cd /home/cpins
wget http://layer1.cpanel.net/latest
sh latest  

 

The install can take quiet a while and is depending on hardware configuration and network speed

cPanel requires a fresh/clean server!
If you are serving websites off this server (and are
not already running cPanel) this installer will
overwrite all of your config files.  You should hit
Ctrl+C NOW!!!

Now is the time to go get another cup of coffee or two :)

 After the initial setup , it is always a good idea to firstly install your IPs for your name servers

In SSH via root

Edit the file

pico /etc/nameserverips

The format of the file is IP address = name server.  For example:

111.222.333.444=ns1.yourserver.com

Just put the IP address that you want to add in the first part and the name of the new name server in the second part.

To reboot or add IPs

/etc/init.d/ipaliases restart 

So now just logg into WHM

http://yournewserverip:2086/ 

After accepting the licence aggreement on the first page , you get redirected to 

Step 2 Basic cPanel/WHM Setup

There you set your  Server Contact E-Mail Address and other information

Once you are satisfied with the configuration, click the Next Step Button.

 

Quotas are now being setup in the right frame. You can continue at any time any quota setup will finish in the background.

 

If you wish to enable the nameserver, you can do so in the right frame. Otherwise, just click the Next Step button. 

 

 

 


Last Updated ( Thursday, 22 May 2008 )
 
< Prev   Next >