[Zope] Zope Setup...

Bryan Bunch bryanb@walls-media.com
Wed, 21 Apr 1999 15:18:34 -0500


Hello All,

I am having some problem getting Zope to run with Apache 1.3.6 under
FreeBSD-2.2-STABLE. I have compiled Apachge with the rewrite module and
added the following lines to my httpd.conf file:

# Zope configuration maps /Zope/ to the Zope.cgi CGI script
      RewriteEngine on
      RewriteCond %{HTTP:Authorization}  ^(.*)
      RewriteRule ^/Zope/(.*) /usr/local/Zope/Zope.cgi/$1
[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
(above is all one line)

<Location /cgi-bin/Zope/>
         AuthType Basic
         AuthName Zope-realm
         AuthUserFile /usr/local/Zope/ru_users
         require valid-user
         </Location>

I can get Zope to work with the python web server, I just cannot get things
to work with the .cgi.  I have run the pcgi sanity checker and below is what
I get:

Python 1.5.2 (#3, Apr 21 1999, 13:22:36)  [GCC 2.7.2.1]
Apache/1.3.6 (Unix) PHP/3.0.7

PCGI info file: /usr/local/apache136/cgi-bin/Zope
PCGI wrapper:   /usr/local/Zope/pcgi/pcgi-wrapper
error attempting: 'from cgi_module_publisher import publish_module'
status: FAILURE

/usr/local/apache136/cgi-bin/Zope
  #!/usr/local/Zope/pcgi/pcgi-wrapper
  PCGI_NAME=Main
  PCGI_MODULE_PATH=/usr/local/Zope/lib/python/Main.py
  PCGI_PUBLISHER=/usr/local/Zope/pcgi/pcgi_publisher.py
  PCGI_EXE=/usr/local/bin/python
  PCGI_SOCKET_FILE=/usr/local/Zope/var/pcgi.soc
  PCGI_PID_FILE=/usr/local/Zope/var/pcgi.pid
  PCGI_ERROR_LOG=/usr/local/Zope/var/pcgi.log
  PCGI_DISPLAY_ERRORS=1
  BOBO_REALM=Zope
  BOBO_DEBUG_MODE=1
  INSTANCE_HOME=/usr/local/Zope

The line that is logged in my apache error log is:

[Wed Apr 21 13:25:54 1999] [error] Premature end of script headers:
/usr/local/apache136/cgi-bin/Zope.cgi.

Any ideas? I have tried every possible combination that I can think of.

Thanks for any help.


Bryan
bryanb@walls-media.com