[Koha-devel] Premature end of script headers
Rick Welykochy
rick at praxis.com.au
Fri Sep 14 08:07:28 CEST 2007
Hi all,
Directly related to our discussions about error handling, I am in a fix.
I have installed a new instance of Koha/2.0.0 (don't ask!) and get the following
error at the OPAC login URL, e.g.
http://HOSTNAME/cgi-bin/koha/opac-main.pl
500 INTERNAL SERVER ERROR
So I look in the opac error_log:
==> log/opac-error_log <==
[Fri Sep 14 15:58:59 2007] [error] [client 10.11.12.8] Premature end of script headers: opac-main.pl
Hrmmm .... now what? Ah yes, let's try that script from the shell:
1. set PERL5LIB as required
2. run the script:
# perl opac/cgi-bin/koha/opac-main.pl
Set-Cookie: sessionID=; path=/
Date: Fri, 14 Sep 2007 06:03:58 GMT
Content-Type: text/html; charset=ISO-8859-1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
etc.etc.etc.
So this script runs fine in the shell but not in Apache. And in Apache, the
error is so severe I see no error message.
I retried after adding use CGI::Carp qw(fatalsToBrowser); to the script,
to no avail.
I also repeated this experiment using the about.pl, since that script is so simple.
Same results: shell 1 apache 0
Anyone have any clues?
I am using my knowledge of Koha/2.2.9 to guide me so perhaps Koha/2.0.0 needs
a slightly different configuration in Apache?!?!
cheers
rickw
--
_________________________________
Rick Welykochy || Praxis Services
Traditionally, most of Australia's imports come from overseas.
-- Keppel Enderbery
More information about the Koha-devel
mailing list