[Zope] Getting PCGI to work with ZServer - how?
Brian Hooper
brian@garage.co.jp
Mon, 06 Sep 1999 18:40:17 +0900
Hi Chris -
I set up PCGI w/ ZServer and IIS on Win32, I imagine it's pretty much
the same... have you tried running the parseinfo program on your
Zope.cgi file to find out if it's reading it right? After that, it
should pretty much just require setting PCGI_PORT in the info file, as
you did, and that should be it! (I seem to remember something about
having to have other seemingly unnecessary directives in my Zope.cgi
file, in order for pcgi-wrapper to parse it correctly).
Hope this helps,
--Brian
"Chris Allen" <chris_allen@aurema.com> wrote:
>
> Hi,
>
> I've just upgraded to Zope2 (using the source dist'n) and I'm trying to work
> out how to use the PCGI facility of ZServer instead of pcgi_publisher.py
> with Apache. According to the README.txt for ZServer:
>
> To use PCGI, configure your PCGI info files to communicate with
> ZServer by setting the PCGI_PORT, PCGI_SOCKET_FILE, and PCGI_NAME.
> The other PCGI settings are currently ignored by ZServer.
>
> OK, so I setup the Zope.cgi file:
>
> #!/wrk/web/dev/pcgi/pcgi-wrapper
> PCGI_NAME=Zope
> PCGI_PORT=8079
> PCGI_PID_FILE=/wrk/web/dev/pcgi/var/pid
> PCGI_SOCKET_FILE=/wrk/web/dev/pcgi/var/socket
> PCGI_ERROR_LOG=/wrk/web/dev/pcgi/var/log
> PCGI_DISPLAY_ERRORS=1
> INSTANCE_HOME=/wrk/web/dev/Zope
>
> Start up Zope and the server is running fine. Then I try to access it via
> apache and get a "can't locate publisher" error. So I add the following
> line (assuming its ignored by ZServer):
>
> PCGI_PUBLISHER=/wrk/web/dev/pcgi/dummy.py
>
> Now all I get is:
>
> pcgi-wrapper: Interrupted system call (102) failure during connect
>
> All the HOWTO's I could find seem to talk about pcgi_publisher instead of
> ZServer.
>
> I guess I'm probably missing something basic here - any pointers??
>
> Thanks,
> Chris
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>
> (To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
>
> For developer-specific issues, zope-dev@zope.org -
> http://www.zope.org/mailman/listinfo/zope-dev )
>