You are not logged in Log in Join
You are here: Home » Members » brianh » Zope 2, IIS, and PCGI

Log in
Name

Password

 

Zope 2, IIS, and PCGI

Recipe for setting up Zope with IIS:

1. (If you're not using a source copy of Zope) Copy over the Zope.cgi
file from a non-Windows Zope dist. Put it in your Zope directory top
level, and rename it something like zope.pcgi.

2. Edit zope.pcgi; fix the paths, and add a PCGI_PORT directive
specifying some hitherto unused port (for example, 8090).

3. Copy zope.pcgi and pcgi\bin\pcgi-wrapper.exe into IIS's scripts
directory.

4. Add a new extension mapping to IIS for PCGI. In the Microsoft
Management Console, select your site's Properties, and then under the
'Home Directory' tab click on 'Configuration'. Here you should be able
to add a new extension linking .pcgi to 'pcgi-wrapper %s'.

5. Add the start up option '-p zope.pcgi' when starting Zope.
If you installed Zope as a Windows NT Service, you will have to edit
the registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\
<Service Name>\Parameters\start

Add the start up option '-p zope.pcgi' (plus any other z2.py command
line options you feel like adding at the time).

6. Make sure that IIS and Zope are both started up, and try accessing
your server via

http://localhost/scripts/zope.pcgi/

This should give you the same thing as

http://localhost:8080/