Sometimes apache will fail to start. It will show the following error message in apache error logs: Unable to open logs This is because of the low number of file descriptors. Check the current limit of file descriptors in the file /proc/sys/fs/file-max: $ cat /proc/sys/fs/file-max 1024 If fs.file-max is quite small (several thousands or so), […]
Author Archive
Fsck.ext3: Unable to resolve UUID
If you are getting the FSCK error fsck.ext3: Unable to resolve ‘UUID=a3e1dbca-60ee-4aa4-bf79-60cf6d96075d’ on system booting, then you can try following steps to resolve that : 1. Use following command to get the UUID of current partitions. blkid 2. Open the /etc/fstab file and check the UUID in the fstab and the result of blkid are […]
Apache failed to start with the “No space left on device” error.
If you receive the following error while restarting Apache in the server, you need to do the following steps. Error:- [error] (28)No space left on device: Cannot create SSLMutex Configuration Failed These errors means that there is no available IPC (inter-process communication) resources in the system, such as semaphores or shared memory segments. You need […]
Disable mod_security2 for a single domain
Mod_security is an open source Apache module. This can be considered as firewall for web applications. It secures the system from the attackers. We use mod_security1 for Apache1.x and Apache 2.x uses mod_security2. In case of mod_security1, we can disable it for a domain using the .htaccess file. If you want to disable mod_sec for […]
Bash Script to Check Apache Memory Usage
We might have come across many situation where we need to find the memory usage by apache and which script or from which directory this process is being called. You can use the script given below to find that and log it whenever the load goes beyond a threshold value. Which also help us to […]
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 […]


Tags: 





