Monthly Archives: February 2010

Warning: MaxClients exceeds ServerLimit

You may reach the maximum number of clients that are allowed to connect to your Apache web server and Apache stops responding.

In this case, you have to increase the MaxClients and ServerLimit variable to a higher value.

The changes has to be placed in the Apache configuration file located at /usr/local/apache/conf/httpd.conf but in case of Apache 2.x version or higher, you may not be able to save the changes directly and a restart of Apache service will reset the values of the two directives.

You may receive the following warning message on restarting the Apache web service:

WARNING: MaxClients of 500 exceeds ServerLimit value of 256 servers, lowering MaxClients to 256. To increase, please see the ServerLimit directive.

In order to overcome the error, you need to execute the following two commands to make the changes permanent.

/usr/local/cpanel/bin/apache_conf_distiller –update –main

This will also prevent any changes to overwrite on the next cPanel update.

WHM unable to create or remove accounts

1) Check your /etc/resolv.conf. If its missing valid nameservers this can be the cause

dig . NS

If this times out then this is the problem. You have to fix your /etc/resolv.conf

2) Make sure you aren’t missing perl modules or have 11.x scripts on a 10.x machine


 /scripts/perlinstaller File::Copy::Recursive
/usr/local/cpanel/bin/checkperlmodules –bootstrap
/usr/local/cpanel/bin/checkperlmodules –full

If you want to keep 10.x:

echo “CPANEL=stable” >> /etc/cpupdate.conf
 /scripts/upcp –force

cPanel sshd has failed, please contact the sysadmin

If you have changed the shell default Port 22 on a cPanel powered server , restarting sshd from the WHM will fail. You have to ssh to the server and issue the following command to restart sshd…

  • Code:
    /sbin/service sshd restart

To, temporarily, reset your shell port back to 22, run the following command from the Address field in browser:


Now, you should be able to access shell, and you need to restart sshd at the prompt using the command mentioned above

How can i install cURL on my cPanel server?

There are two common types of cURL installs on most cPanel servers. The first is a binary install, this is where the cURL binary (program) sits on your server (usually in /usr/bin) and can be run via the CLI or script. The second method is to have cURL built into PHP so that PHP’s cURL functions can be used in PHP code. Below explains how to install each.
Installing the Binary Version on All versions of CentOS/RHEL/Fedora:

1. Log into the server via SSH or console as root.
2. Run the following command:

PHP Code:
yum install curl curl-devel

3. When prompted to confirm the installation press y.

CURL is now installed and should reside in /usr/bin/curl
Adding cURL support into PHP:

1. Log into the server via SSH or console as root.
2. Run the following command:

PHP Code:

3. Select ‘Start customizing based on profile’, leaving ‘Previously Saved Config’ checked.
4. Select the version of Apache you would like to run.
5. Select the branch and version of PHP you would like on the next two pages (it is not recommended to run both PHP 4 and 5).
6. Select ‘Exhaustive Options List’ on the following page.
7. Scroll down to the PHP configuration section to cURL, and proceed to th enext stop (cURL-SSL can also be enabled).
8. Select ‘Save and Build’, and let the compilation run its course (usually takes 15-20 minutes).

The system will now recompile PHP with cURL support!