[Zope] Zope PCGI under OSX

Victor Ng vng1@mac.com
Sat, 29 Mar 2003 18:20:59 -0500


I'm trying to get Zope to run with Apache on my OSX machine (10.2.4), 
but I can't figure out how to configure PCGI.

I've compiled the pcgi-wrapper executable, but I'm not sure if it works 
- is there a way I can test it?

The zope server is currently running under it's own user named 'zope' 
and I can access it normally under port 8080 - including the management 
screens.

I don't seem to have a Zope.cgi (or pcgi) file created after I 
installed Zope 2.6.1 from source.

I've tried hand building a Zope.cgi and placing it under 
/Library/WebServer/CGI-Executables with the following contents:

#!/usr/local/zope-2_6_1/pcgi/pcgi-wrapperPCGI_NAME=Zope
PCGI_PORT=8090
PCGI_MODULE_PATH=/usr/local/zope-2_6_1/lib/python/Main.py
PCGI_PUBLISHER=/usr/local/zope-2_6_1/pcgi/pcgi_publisher.py
PCGI_EXE=/usr/local/zope-2_6_1/pcgi
PCGI_SOCKET_FILE=/usr/local/zope-2_6_1/pcgi/pcgi.soc
PCGI_PID_FILE=/usr/local/zope-2_6_1/pcgi/pcgi.pid
PCGI_ERROR_LOG=/usr/local/zope-2_6_1/pcgi/pcgi.log
PCGI_DISPLAY_ERRORS=1
BOBO_REALM=Zope
BOBO_DEBUG_MODE=1
INSTANCE_HOME=/usr/local/zope-2_6_1

How do I glue Apache to Zope using PCGI?  Where can I find 
documentation on how to use PCGI?  I get the feeling that I'm doing 
something wrong with permissions - but I'm lost as to what to do.

vic