Using Zope With Apache - When Persistence Pays Off (
Page 3 of 7 )
There are a number of different ways to get Apache working with Zope -
however, all of them rely on using CGI to pass Apache requests to Zope
for processing. The first of these involves using persistent CGI, or
PCGI.
When Zope is first installed, a file named "Zope.cgi" is created in the
Zope installation directory. This is the file you will need in order to
serve up Zope data via Apache. Copy this file to your Apache server's
"cgi-bin" directory, and set its ownership and permissions
appropriately.
$ cp /usr/local/Zope/Zope.cgi /usr/local/apache/cgi-bin/
$ chmod 711 /usr/local/apache/cgi-bin/Zope.cgi
Next, start Zope with the "-p" command-line parameter (this tells Zope
to use PCGI).
$ cd /usr/local/Zope
$ ./bin/python z2.py -p /usr/local/apache/cgi-bin/Zope.cgi
Zope should now start up. Verify that it is running by browsing to the
URL http://your.server:8080/ and the URL http://your.server:8080/manage/
(for the management interface)
Next, start up Apache.
$ /usr/local/apache/bin/apachectl start
You should now be able to access the Zope pages through CGI, by browsing
to the URL http://your.server/cgi-bin/Zope.cgi - in other words,
accessing Zope content via Apache.