Archive for December 2nd, 2011

Run Apache and lighthttpd on port 80

Lighthttpd is the webserver which will help to increase the speed with a small memory consumption. Now, I assume that you have already installed both apache and lighthttpd in the server. The main thing should be noted here is we need to have 2 IP in the server so that only we can run both […]

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 […]

InnoDB has been disabled for this engine

If you are getting this error so first check if InnoDB is enabled or not using following steps, root@server[~]# mysql SHOW ENGINES; Above command will give you following output mysql> SHOW ENGINES; +————+———+—————————————————————-+ | Engine | Support | Comment | +————+———+—————————————————————-+ | MyISAM | YES | Default engine as of MySQL 3.23 with great performance […]