Installing cPanel/WHM on a vanilla CentOS 5 Server

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 🙂

And as soon as the install finished you can log into WHM

http://yournewserverip:2086/

Facebook Comments

More Stuff

Worldpay struck by online attack The internet payment system Worldpay is under attack from unknown hackers, disrupting thousands of online retailers around the world. Worldpay's payme...
Jack Dorsey on Twitter’s Role in Free Speech and Filter Bubb... On Monday, at WIRED's 25th anniversary summit, I spoke with Jack Dorsey about some of the biggest questions he confronts running Twitter and Square. H...
Huawei’s CFO is being accused of fraud, and her main defense is a ... After years of facing suspicion from US authorities, Huawei is now standing trial for fraud. Today, a bail hearing was held for Huawei’s chief financi...
WIRED 25th Anniversary: Who’s Shaping Tech’s Next 25 Y... “Why WIRED? Because the Digital Revolution is whipping through our lives like a Bengali typhoon—while the mainstream media is still groping for the ...
Spread the love

Posted by News Monkey