yabsoft
08-02-2006, 04:24 PM
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. If your server is running the suEXEC security feature, you may get the "premature..." error, and it'll give you no indication whatsoever that suEXEC is the cause. Check if you have a /var/log/apache/suexec.log file; if so, and if it's the problem, it'll explain the reason why it's denying your script from executing properly.
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. If your server is running the suEXEC security feature, you may get the "premature..." error, and it'll give you no indication whatsoever that suEXEC is the cause. Check if you have a /var/log/apache/suexec.log file; if so, and if it's the problem, it'll explain the reason why it's denying your script from executing properly.