Home arrow Zope arrow Page 3 - Using Zope With Apache

When Persistence Pays Off - Zope

So you've got your Apache server serving up static HTMLcontent, and you've got some cool new Zope applications as well. Now, incase you were wondering, it is possible for the twain to meet - and thisarticle tells you how, with a step-by-step guide to the process ofserving up your Zope content through Apache.

  1. Using Zope With Apache
  2. A Few Good Reasons
  3. When Persistence Pays Off
  4. The Writing On The Wall
  5. The Fast And The Furious
  6. Performing By Proxy
  7. Zip Zap Zoom
By: icarus, (c) Melonfire
Rating: starstarstarstarstar / 30
May 14, 2002

print this article


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 Zopefor processing. The first of these involves using persistent CGI, orPCGI.

When Zope is first installed, a file named "Zope.cgi" is created in theZope installation directory. This is the file you will need in order toserve up Zope data via Apache. Copy this file to your Apache server's"cgi-bin" directory, and set its ownership and permissionsappropriately.

$ 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 Zopeto 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 theURL 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 browsingto the URL http://your.server/cgi-bin/Zope.cgi - in other words,accessing Zope content via Apache.

>>> More Zope Articles          >>> More By icarus, (c) Melonfire

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort


- Creating Zope Products
- Plone Content Types With Archetypes
- Flat User Management in Zope
- Creating Basic Zope Applications
- Getting started with Zope for Linux and Sola...
- ZPT Basics (part 4)
- ZPT Basics (part 3)
- ZPT Basics (part 2)
- ZPT Basics (part 1)
- Exception Handling In DTML
- DTML Basics (part 4)
- DTML Basics (part 3)
- DTML Basics (part 2)
- DTML Basics (part 1)
- Using Zope With Apache

Developer Shed Affiliates


Dev Shed Tutorial Topics: