[Zope] Zope install help needed: "Premature end of script header"

Phil Harris phil@media-1.ml.uwcm.ac.uk
Fri, 19 Mar 1999 09:03:47 -0000


The error you get when running Zope.cgi from the command line is a red
herring, ignore it?

It comes about because SCRIPT_NAME is set by the Web Server and as you
aren't running it through such, you will get errors telling you that various
ENVVARS do not exist.

As to your other problem, hmm, it still sounds as if the var dir is not set
correctly, maybe?

HTH

Phil
phil@philh.org

----- Original Message -----
From: Kevin Teague <kevin@studioinfo.com>
To: <zope@zope.org>
Sent: Friday, March 19, 1999 6:36 AM
Subject: [Zope] Zope install help needed: "Premature end of script header"


>I installed the  Zope binary on a linux box, and everything went well. User
>authentication worked successfully with Apache using the 'REMOTE USER'
>environment variable. Then I tried to get ZMySQLDA to work, but I couldn't
>get the Zope Python install to find 'libmysqlclient'. I got a build of
>Python 1.5.1 to successfully import MySQL.
>
>So I decided to reinstall Zope from source, so that I could use my own
>Python. The source Zope built okay, but when I tried to start Zope through
>the web browser I got an "Internal Server Error" message from Apache, the
>error log said I had a "Premature end of script header". I've checked
>permission on the var dir and user authentication still seems to work fine.
>I couldn't figure out why I was getting the error, so I tried re-installing
>the binary distribution of Zope. No luck there either, I get the same
>"premature end of script header" error message. I've checked the Zope.cgi
>file, and it seems o.k.
>
>Does anyone have any idea why Zope.cgi is failing on me? Is there something
>I have to do to Apache or Zope if I've removed the Zope folder and then
>untarred and re-installed a new Zope?
>
>Don't know if this'll help, but this is what I get when I run Zope.cgi from
>the command line:
>Status: 500 Internal Server Error
>Bobo-Exception-File: lib/python/ZPublisher/Request.py
>Content-Type: text/html
>Bobo-Exception-Type: exceptions.KeyError
>Bobo-Exception-Value: SCRIPT_NAME
>Content-Length: 363
>Bobo-Exception-Line: 167
>
><html>
><head>
><title>exceptions.KeyError</title>
></head>
><body>
>Sorry, an error occurred.<p>
><!--
>Traceback (innermost last):
>  File lib/python/ZPublisher/Publish.py, line 870, in publish_module
>  File lib/python/ZPublisher/Publish.py, line 248, in __init__
>  File lib/python/ZPublisher/Request.py, line 167, in __init__
>KeyError: SCRIPT_NAME
>
>-->
></body>
>Kevin Teague
>Kevin@StudioInfo.com
>
>Temporary Nelson address: #6-560 Baker street
>Phone: 250-354-1845   *   Dedicated Fax: 250-354-1890
>
>_______________________________________________
>Zope maillist  -  Zope@zope.org
>http://www.zope.org/mailman/listinfo/zope
>
>(For developer-specific issues, use the companion list,
>zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )