How can i fix this fastcgi errors?

December 29, 2014 1.6k views


I get this error in my error log:

[Mon Dec 29 04:35:09.016736 2014] [fastcgi:error] [pid 21815] [client] FastCGI: incomplete headers (0 bytes) received from server "/var/www/clients/client0/web4/cgi-bin/"
[Mon Dec 29 04:35:10.063692 2014] [fastcgi:error] [pid 21814] [client] FastCGI: comm with server "/var/www/clients/client0/web4/cgi-bin/php5-fcgi-" aborted: idle timeout (300 sec)

What can i do about it to get it fix?

1 Answer

This error is usually the result of an improperly written CGI script that, as the error suggests, is not sending the proper headers. I ran into this error from my own CGI scripts until I added a "Content-type: text/html" header followed by a blank line before returning anything else. This assumes, of course, that what you're returning is actually text/html. You may wish to do some further research on this topic to ensure that your script is correctly written for whatever it is you're trying to do with it.

Have another answer? Share your knowledge.