Centos 6.4 - Installing op sys correctly without additional stuff ?


Well-Known Member
Sep 19, 2011
cPanel Access Level
Root Administrator
In CentOS 5 version you could choose, not to install Gnome DeskTop and other things that you don't need with cPanel.

Apparently in CentOS 6.4 it simply force installs everything that is not needed aswell without asking. Used graphical install mode. Not familiar with any other.

Anyone have good knowledge how to properly do CentOS 6.4 install before installing cPanel on the system ?
I have seen documentation that states about writing config file on the bootable CD. Apparently so far I have not figured out how to correctly make bootable CentOS as ways I tried, didn't let to boot written CD afterwards.

Meybe a guide for dummys would do starting which package to download. What kind of CD writing software to use and how to write on CD. Along with how to take out things you don't need and what to take out.

Below some info I have gathered, some from cPanel support. I'm using 64bit system myself.
But I do have 32GB RAM on the system. Previously x64_86 seemed to support it but google tells me Kernel_PAE 32bit op sys only supports more then 4GB RAM. SSH command showed correctly 32GB on the system.

Step 4: Install Your Operating System

These yum groups should not be installed.
FTP Server
GNOME Desktop Environment
KDE (K Desktop Environment)
Mail Server or E-mail Server
Web Server
X Window System
Removing them after they are installed
# yum groupremove "E-mail server" "Web Server"

# yum grouplist

Removing Gnome DeskTop (somehow once tried it and got unbootable system)
# nano /etc/inittab
Change id:5:initdefault: to id:3:initdefault:
# yum groupremove "GNOME Desktop Environment" -y
# yum groupremove "X Window System" -y

Disk space probably more then 15GB needed on /var and /usr

seLinux must be disabled.
# sestatus

Step 5: Configure Your Operating System

Edit /etc/selinux/config to change selinux to be disabled, then reboot the server for that to take effect.

Hostname must be fully qualified hostname and should not be using localhost rather than the server's main IP.
# cat /etc/hosts
# hostname -f
# hostname -i

Setup a hostname and set the hostname to use the main server IP.
Finally, you may wish to change the resolver to a public one such as Google's:
# cat /etc/resolv.conf
This would be the following instead in /etc/resolv.conf file:

Installing cPanel using the "screen" command without the quotes allows installing without worrying about losing your session. This works in SSH on any client so long as screen is installed. If it is not installed, it can be via "yum install screen" command without the quotes.

Mounting external drive:
1. open the terminal window with the root account.
2. download rpmforge for centos 6 to your system:
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
3. now install the rpmforge for centos 6:
rpm -Uvh http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
4. just install/update the package fuse-ntfs-3g:
# yum update fuse-ntfs-3g
5. mount your units:
# mount -a

cPanel install takes approximately 284 minutes on Dual Core processor with 16GB RAM.

tar -pcvzf xxx.tar.gz ABC
tar -pxvzf xxx.tar.gz ABC
You would only need the last param if you only want to extract ABC from a tarball that also contains other things.

10 Tips for making your cPanel and WHM servers more secure | cPanel, Inc.

SSH - wheelgroup user and state port, ip.
There is security issue with Demo account of cpanel. If you dont set wheelgroup user before you create Demo account then somehow some exploit is able to gain SSH access as normal shell to Demo account and erease files from account that username is known to. Also able to terminate database.

Some firewall may help aswell.

I just put everything here I believe is needed to know for installing.

Downloading CentOS 6.4.
64bit systems CentOS Mirror
32 bit systems CentOS Mirror

Other versions Download - CentOS Wiki


Well-Known Member
Jun 4, 2008
Indiana, USA


Well-Known Member
Apr 27, 2006
Disillusioned in England
cPanel Access Level
Root Administrator
I'd second what's said above, the minimal installs are usually less of a headache (apart from that one a while back that was so minimal it didn't even come with networking ;) )

With regards what you have under "Mounting external drive:" unless this is something you need to do (i.e. copy a lot of data off an existing NTFS drive directly attached to the server) you might be best off avoiding adding another repo to centos and transferring the data over the network, while rpmforge shouldn't break anything in base if you're new to things the less different avenues of potential confusion / breakage the better.

With regards firewall, if you aren't working with a hardware firewall doing both ingress and egress filtering something like CSF is most certainly a good idea ConfigServer Security & Firewall (it'll also help you monitor resource usage etc on your server).


Well-Known Member
Jul 19, 2005
cPanel Access Level
Root Administrator
I always use CentOS minimal install as Mike recommend.
After installing you update with yum and get some additional software and start install from cPanel.

I assume you know how to install CentOS6.4, then after that you do as follow:

vi /etc/selinux/config

* Check all your network settings and hosts files....

yum remove NetworkManager
yum update
yum install wget nmap mlocate prelink rdate yum-utils
yum clean all

# reboot

cd /home
wget -N http://httpupdate.cpanel.net/latest-dnsonly
sh latest-dnsonly

cd /home
wget -N http://httpupdate.cpanel.net/latest
sh latest

# Installer starts, get a coffee, it can take a while: half hour to hour

# Install CSF firewall.

cd /root
touch /var/log/lfd.log
wget http://www.configserver.com/free/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh
cd /root
rm -fv csf.tgz
csf -a xxx.xxx.xxx.xxx [your IP number]
csf -s

reboot and test, configure WHM.

I left out a lot of other things, but this should do it.