Archive for the ‘Apache’ Category

WHM failed to receive Apache Status

If the WHM is not showing the Apache status, make sure that the whm-server-status is added in the configuration. $ vi /usr/local/apache/conf/httpd.conf Then add the following entries in the Apache configuration file and then save. <Location /whm-server-status> SetHandler server-status Order deny,allow Deny from all Allow from 127.0.0.1 </Location> ExtendedStatus On Restart the apache service. $ […]

Apache error: Invalid command ‘BytesLog’

If you receive the following error, Invalid command ‘BytesLog’, perhaps mis-spelled or defined by a module not included in the server configuration while restarting apache in cPanel servers , do the following steps.   $ cd /usr/local/cpanel/apache $ /usr/local/apache/bin/apxs -iac mod_log_bytes.c $ /etc/rc.d/init.d/httpd restart It will install the missing module and restart apache.

How to increase the MaxClients value greater than the current HARD_SERVER_LIMIT set for Apache.

1. Check if there is any hard server limit specified for Apache max connections. /usr/local/apache/bin/httpd -V | grep HARD_SERVER_LIMIT 2. If it is there, then you would need to look for this directive in the Apache’s header file /usr/local/apache/include/httpd.h 3.  Edit this file and increase the HARD_SERVER_LIMIT as per your requirement. 4. Recompile Apache using […]