KVM VPS Hosting with KVM VPS Unlimited Bandwidth, KVM virtual private server hosting starting at only $30 a month. Cheap KVM Hosting up to 6 Cores @ 2.83Ghz, 12GB Memory, 1TB RAID-10 with Unlimited Bandwidth.
cPanel Installation CentOS 6.7 Tutorial
Install cPanel on CentOS 6 WHM, cPanel Installation CentOS 6.7, CloudLinux & RedHat, Easily install cPanel CentOS 6 using my cPanel Installation Tutorial. We’ll use the cPanel fast installation, you can do a manual cPanel installation if you wish but it will take a lot more time to complete the install cPanel WHM on CentOS 6.7
Install cPanel on CentOS 6 WHM
In this tutorial I will be showing you how to Install cPanel on CentOS 6 WHM, cPanel installation CentOS 6.7, CloudLinux or RedHat systems. You can also get an idea on other linux operating systems by looking through this cPanel installation Tutorial.
Install cPanel on CentOS 6 WHM you will need to partition your CentOS 6.7 server correctly you can visit cPanel’s website to learn How to Partition CentOS for cPanel.
Once you have successfuly install cPanel on CentOS 6 WHM you will want to start the cPanel installation CentOS 6.7, CloudLinux or Redhat, but first you might want to Try cPanel & WHM — for Free so you can install and setup cPanel & WHM before you actually pay to Buy cPanel License.
cPanel WHM Install on CentOS 6.7
First you need to remove some services that were installed before install cpanel whm on CentOS 6.7 for a successful cPanel Installation CentOS 6.7 make sure you install CentOS using netinstall CentOS 6.7 or using Minimal CentOS 6.7 Installation. Make sure your install cPanel WHM on CentOS 6.7 Installation.
First things first, you should disable remote ssh access for the ROOT user and create a new user and add it to the sudo file and wheel group.
Disable Remote Root SSH Login on CentOS
service sshd restart
Create the new user by using the useradd command:
Now create a password for the new user:
Now we need to add the new user to the sudo file:
Scroll down until you see:
root ALL=(ALL) ALL
Now add your new user below root:
newuser ALL=(ALL) ALL
You can also add the new user and root to the wheel group and enable wheel group in /etc/sudoers file
Now lets add root and your newuser to the wheel group:
Scroll down until you see the wheel group and add root and new user:
Now you need to edit sudoers file and uncomment the wheel group.
%wheel ALL=(ALL) ALL
You’ll need to stop iptables before you install cPanel on CentOS 6, Once cPanel has been installed you’ll need to manually open ports or use a firewall and login intrusion detection system such as CSF LFD. The below link will show you how to install CSF LFD on cPanel WHM and tell you what ports you need to open for cPanel WHM. If you use any other services you’ll need to open those ports too.
service iptables stop
You need to disable SELINUX, The fast installation below automatically adds SELINUX=permissive to the /etc/selinux/config file.
Change SELINUX=enforcing to SELINUX=disabled
yum remove postfix* bind* mysql* apache*
yum install perl nano wget
chmod +x latest
The Install cPanel WHM on CentOS 6.7 will take a while, so sit back and make sure you look to see if any errors occur while cPanel installation is running. No input is required.
When you see the below you’ll know your cPanel installation completed successfully.
Congratulations! Your installation of cPanel & WHM 11.50 is now complete. The next step is to configure your server.
You will now need to login to WHM to begin setting up your server. Make sure you create an A record to the hostname of the server inside your domains dns control panel so your hostname resolves or use your up address. Make sure your hostname is a subdomain of your main domain name like server1.YourDomain.com.
or use an ip address:
Use the ROOT user name and Root Password when logging into WHM.
You will have to accept the agreement and setup your resolvers which are the nameservers you got from your ISP. Next is setting up networking. Your first networking device will be eth0. If you have say your 2nd nic in an internal network than you can create a virtual network card on eth0 that will be called eth0:cp1 which you will add your 2nd dedicated ip address under so you can have 2 ip addresses for your 2 nameservers.
Setup cPanel Nameservers on CentOS
I recommend you pick BIND as your nameservers service and click next and cPanel WHM will automatically install and setup bind.
Setup cPanel Nameservers on CentOS
Here you will need to decide what you want to name your nameservers and add A records for your nameservers and hostname. Make sure the boxes are checked.
Setup cPanel Services FTP Configuration and Mail Configuration
On this page you will setup cPanel services FTP configuration and Mail Configuration, cPHulk Brute Force Protection and also Install common set of perl modules.
Pure-FTPD is the default for cPanel, but I personally always found ProFTPD to be a better fit. You can setup fail2ban for brute force protection. But in this tutorial we’ll be installing Pure-FTPD on cPanel CentOS so make sure Pure-FTPD is checked.
cPanel mail configuration we will use Dovecot which is the default for cPanel WHM and supports mail SNI integration. I’ve personally always used Courier but in this tutorial we’ll be installing Dovecot to make sure it’s checked and Convert Mailbox Format is checked.
Setup cPHulk Brute Force Protection
Setup cPHulk Brute Force Protection by clicking on Enable cPHulk and go ahead and click on all the check boxes including Configure Advanced Settings. I personally like to set my brute force protection programs to have a long detection rate because a lot of botnets will Slowly brute force your cpanel server services using thousands of ip addresses and will do it in such a low rate to make it harder to detect the attack.
Increase the Brute Force Protection Periods for better security but I’ll be using a slightly higher values than defaults to begin with. Setting User-based Protection to 30 minutes and Maximum Failures by Account at 15. Which I will personally tweak these settings to provide even better security.
IP Address-based Brute Force Protection I’ll be raising to 60 minutes and Maximum Failures per IP Address to 5 and One-Day Protection to 30 Failures and Login History Duration for Retaining Failed Logins to 360 which is the default.
Make sure you have Install Common Set of Perl Modules check boxed.
Click Next and now you’ll be at step 6 out of 6. This is where you can set Quotas for your file system. Make sure to check mark Use File System Quotas and click Finish Setup Wizard.
Setup cPanel Showcase Features
Now you’ll be at the cPanel Showcase Features page. Here you will pick cPanel features such as cPanel Themes, ModSecurity, Passive OS Fingerprinting, Query Apache for nobody senders and SMTP Restrictions. Make sure all are enabled.
Now click Save Settings.
Now you have successfully install cPanel on CentOS 6 WHM and will be inside WHM now. You can go through every option and make sure everything is as you wish. I recommend you follow some cpanel hardening tutorials online after you setup your cpanel packages and start adding users. Make sure you install CSF LFD and any other security features you wish to implement.