How can i fix this fastcgi errors?

Posted December 29, 2014 7.7k 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?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
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.