cPanel Config

Welcome to cPanelConfig the fastest growing cPanel configuration and troubleshooting guide on the internet. Please take the time and register. We would love to have your contribution to this completely free cPanel resource. We are updating this daily so be sure to visit us on a regular basis.

How to upgrade perl to v5.8.8

Posted by yolau

Installing and running cPanel 11 require you to have perl v5.8.8. If you run an older version some things will not work properly (like spamassasin for example).
Do you need to upgrade?
YES if you running an older version.
How to check what version are you using?
Run:
perl -v
If you see anything like:
This is perl, v5.8.7 built for i686-linux
then [...]

How to mitigate DOS atacks with DOS-Deflate

Posted by yolau

What is DOS-Deflate?
(D)DoS Deflate is a shell script developed by Zaf, originally for use on MediaLayer servers to assist in combating denial of service attacks. However, it was seen to be very effective for our purpose, and therefore was released as a contribution to the web hosting community. (D)DoS Deflate is now used by not [...]

How to determine the connection speed

Posted by yolau

I’ve been asked this several times so I hope this little article will help many people.
The question is: how do I determine the connection speed negotiated with the switch?
Many ask this because they want to be sure that they are getting what they pay for.
Please note that this is will NOT determine your server max [...]

Install and use chkrootkit

Posted by yolau

What is chkrootkit?
chkrootkit is a tool to locally check for signs of a rootkit.  It
contains:
* chkrootkit: a shell script that checks system binaries for
   rootkit modification.
* ifpromisc.c: checks if the network interface is in promiscuous
   mode.
* chklastlog.c: checks for lastlog deletions.
* chkwtmp.c: checks for wtmp deletions.
* check_wtmpx.c: checks for wtmpx deletions.  (Solaris only)
* chkproc.c: checks [...]

Basic security configuration for a new cPanel server

Posted by yolau

Note: This article is based on a Layeredtech knowledgebase article https://support.layeredtech.com/home/index.php?x=&mod_id=2&id=101

We do not guaranty that the following steps will make your server hack proof, but it will greatly reduce your chances of compromise.
Basic Steps to Securing CPanel (Linux based OS):
These are items inside of WHM/Cpanel that should be changed to secure your server.
Goto Server Setup [...]

Closing Open DNS Servers

Posted by yolau

Allowing DNS Recursion is like running an Open SMTP Relay. You allow anyone to query your DNS server and this can easily lead to abuse.
You can fix this by disabling recursive lookups for not authorized IP’s.
This article will teach you step by step how to do this.

Login to your server as root
Edit /etc/named.conf
pico /etc/named.conf
Add before [...]

Secure ssh access

Posted by yolau

Securing ssh access is extremely vital for any server. There are a few things that you can do to secure it. This article will cover one the basics.

The first this that I recommend doing is changing the ssh port. This will prevent a lot of login attempts from automatic scripts trying port 22. To do [...]

Install MySQL Performance Tuning Primer Script

Posted by yolau

Tuning the performance of MySQL can be a really hard job to do.
There are many thinks to consider and no two servers are identical so there is no universal solution.
Tuning Primer is a script that will help you tune your mysql installation by providing very healthy recommendations based on past mysql records.
For the script to [...]

Install BFD – Brute Force Detection

Posted by yolau

What is BFD?
BFD is a modular shell script for parsing applicable logs and checking for authentication failures. There is not much complexity or detail to BFD yet and likewise it is very straight-forward in its installation, configuration and usage. The reason behind BFD is very simple; the fact there is little to no authentication and [...]

Fix cron problems on new cPanel 11.x servers

Posted by yolau

I’ve noticed that on some new installs of cPanel 11.x + CentOS 5.0 there is a problem with cron jobs where the crons are not saved at all with no apparent reason and with no errors.
After some investigations I’ve found out that this is do to the fact that crontab doesn’t have the correct permissions.
It’s [...]