Premature End of Script Headers Error
...and how to fix it.
When running a Perl CGI script, you may see the "premature end of script headers" error in your Apache error.log or error_log file. This can be caused by some of the same problems (and fixed with some of the same fixes) as the Internal Server Error message.
But there are other causes of the "premature end of script headers" message, one of which is particularly tricky to track down: suEXEC problems.