Raise Hard Server Limit……

May 13, 2008

Sometimes, there may be more number of httpd connections to the server. If we increase Maxclients to more than 300, it won’t be able to withstand the high access.

This can be fixed by enabling Raise Hard Server Limit on easy apache.

In WHM , go to Software > Apache Update:
1. Profile: Previously Saved Config [Start customizing based on profile]
2. Apache Version: (your choice) [Next Step]
3. PHP Major Version: (your choices) [Next Step]
4. PHP Minor version: (your choices) [Next Step]
5. Short Options List: (your choices) [Exhaustive Options List]
6. Exhaustive Options list: [CHECK] Raise Hard Server Limit
7. Save and build

The above process can be done via SSH as well (using /scripts/easyapache) and finding similarly “Raise Hard Server Limit” in order to enable it and then recompile Apache.

When you choose “Raise Hard Server Limit” (via cPanel or SSH), cPanel patches /home/cpeasyapache/src/include/httpd.h (using /home/cpeasyapache/src/cppatch/raise_hard_server_limit.patch) in order to increase HARD_SERVER_LIMIT from 256 to 2048.