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.
# 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:
nameserver 8.8.4.4
nameserver 8.8.8.8
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.
Packing/unpacking
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.
Security,
/etc/security/limits.conf
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
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.
Removing them after they are installedFTP Server
GNOME Desktop Environment
KDE (K Desktop Environment)
Mail Server or E-mail Server
Mono
Web Server
X Window System
# 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:
nameserver 8.8.4.4
nameserver 8.8.8.8
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.
Packing/unpacking
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.
Security,
/etc/security/limits.conf
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