You may see this error while compiling Apache or PHP from source. In such cases, it can be resolved by installing the following package.
yum install openldap-devel
You may see this error while compiling Apache or PHP from source. In such cases, it can be resolved by installing the following package.
yum install openldap-devel
Upon checking the Apache error logs, we found the above error when sites were showing Internal Server Errors. To resolve this, make sure that the following Line is present or not commented in apache httpd.conf file in the server.
LoadModule expires_module libexec/mod_expires.so
Restart Apache in the server and check the site now.
Upon checking in Apache error logs in one of our servers, I found this error. You can resolve it by increasing the MaxClients value in Apache configuration File. Do note that you may need to increase the ServerLimit setting along with the MaxClients setting.
============
ServerLimit 256
MaxClients 150
============
I got the following error while accessing an flv file in my cpanel server.
“Zero sized reply”
Fix : Add teh following Addtype in the htaccess of that domain.
AddType video/x-flv .flv
You can use the following command to get the connections to port 80:
tcpdump -nn ‘tcp[13] == 2′ and port 80 -c 100 -i any
Sometimes you might have noticed this error in apache error logs when sites in server fails to load in browser. This may happen because of low memory or improper file handlers It can be fixed by the following steps.
Please add the following in apache conf and see the changes.
AcceptMutex fcntl
then do
/usr/local/cpanel/bin/apache_conf_distiller –update –main
/scripts/rebuildhttpdconf
/etc/init.d/httpd graceful
We had an issue recently where a site was not resolving to the correct default page after restoration. Upon checking, there were two files index.htm and index.html. The site was resolving from index.htm. In order to fix this open .htaccess file and add the following.
DirectoryIndex index.html index.htm
After this the site will load from index.html first.
You can use the following script to determine the IP/IPs from which maximum apache connections were made to the domain.
less /usr/local/apache/domlogs/domain.com | awk ‘{print $1}’ | sort | uniq -c | sort -n
We faced an issue recently where a redirect rule was not working irrespective of correctly specifying in .htaccess file. We checked in several ways but the issue was not resolved. Finally, my fellow admin suggested we add it directly in the virtual host in apache config file of the domain. And it worked!!!!.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^webmail.sachinpradeep.co.in
RewriteRule ^/(.*)$ https://www.google.com/a/sachinpradeep.co.in/$1 [L,R=301]
Internal server error was encountered when couple of PHP sites were called after an easy apache upgrade in one of our servers. Upon checking apache error logs, we found the following error.
SecurityException in Application.cpp:188: Do not have root privileges. Executable not set-uid root?
Turns out it’s due to the suphp binary missing its sticky/suid permissions. To fix, simply chmod +s the suphp binary:
chmod +s /opt/suphp/bin/suphp