[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-devel] Premature end of script headers
From: |
Rick Welykochy |
Subject: |
[Koha-devel] Premature end of script headers |
Date: |
Fri, 14 Sep 2007 16:07:28 +1000 |
User-agent: |
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4 |
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
- [Koha-devel] Premature end of script headers,
Rick Welykochy <=