[Zope] PCGI cannot find existing file (was: Zope 2.1 does NOT work with NT Apache!) Apache!)

Martijn Faassen m.faassen@vet.uu.nl
Wed, 08 Dec 1999 19:57:32 +0100


Rik Hoekstra wrote:

> > I apologize for writing such a strong title, but I can't get Zope 2.1 to
> > work with NT Apache at all, and my previous message (more extensive)
> > describing my problems went unanswered. I realize installation issues
> > are an impopular topic.
> >
> > The binary distributation is insufficient, because no Zope.cgi is
> > included.
> 
> Yes, you're right.
> You have to get a Zope.cgi from a non-binary distribution, I'm afraid. Why
> this is, I cannot tell. It worked under IIS.
> I have no experience with apache, but I do have with setting up Zope (2.0.1,
> but it should be the same) under IIS. Probably IIS is (even) more tricky,
> but the service and pcgi part should be the same

Yes, it appear to be the same. Thanks for the pointers!

[snip more good advice]

It's still not working, though, and this time it's really weird.

I have a zope.cgi file setup. It points to the PCGI_PUBLISHER
(pcgi_publisher.py). But somehow, whatever I do, if I write the path
with / or \, include f: or not, it just fails to find that file. the
pcgiwrapper.exe keeps coming with a 

missing publisher: f:\Zope\pcgi\pcgi_publisher.py

It just plain refuses to find the right file, whatever I do! I've even
tried placing that .py file in the root of f:, and I've tried listing a
readme file, but no matter what I do, it fails to find it. 

I traced this message back to the file parseinfo.c. There it does a
stat() to check if the file exists. Somehow that stat fails. As I don't
have a C compiler for NT I can't debug this any further.. This is
terribly weird. I've even tried using Zope 2.0's pcgi .exe files in the
hope that they would work, but no luck.

My current zope.cgi file:

#!f:\zope\pcgi\win32\pcgi-wrapper.exe
PCGI_NAME=Zope
PCGI_PORT=8090
PCGI_MODULE_PATH= f:\Zope\lib\python\Main.py
PCGI_PUBLISHER= f:\Zope\pcgi\pcgi_publisher.py
PCGI_EXE= f:\Zope\bin\python.exe
PCGI_SOCKET_FILE= f:\Zope\var\pcgi.soc
PCGI_PID_FILE= f:\Zope\var\pcgi.pid
PCGI_ERROR_LOG= f:\Zope\var\pcgi.log
PCGI_DISPLAY_ERRORS=1
BOBO_REALM= Zope
BOBO_DEBUG_MODE=1
INSTANCE_HOME= f:\Zope 

Useability note: it's way too hard to setup Zope on NT/Apache
Maintenance note: manually editing the registery to pass an option to an
NT service is not maintainable
Note to self: convince boss to let me use Linux for the server..argh!

Regards,

Martijn