I have PHP website running under mod_fcgi in apache2.
Problem is that in some cases i get (probability is something like 1/400): Premature end of script headers: controller.php and Internal Server Error
It seems like it's not problem of code that's running because i'm running the same scripts over and over again with similar data.
How do I debug such thing? What could cause such thing?