[Zope-Checkins] CVS: Zope/doc - WEBSERVER.txt:1.21.2.2
Fred L. Drake, Jr.
fred@zope.com
Wed, 5 Mar 2003 14:53:08 -0500
Update of /cvs-repository/Zope/doc
In directory cvs.zope.org:/tmp/cvs-serv12144
Modified Files:
Tag: new-install-branch
WEBSERVER.txt
Log Message:
Update the FastCGI instructions to reflect what's being done in the
new-install-branch. Remove some ambiguous comments including a
partial software release date; they no longer apply.
=== Zope/doc/WEBSERVER.txt 1.21.2.1 => 1.21.2.2 ===
--- Zope/doc/WEBSERVER.txt:1.21.2.1 Wed Mar 5 14:17:00 2003
+++ Zope/doc/WEBSERVER.txt Wed Mar 5 14:53:06 2003
@@ -112,13 +112,9 @@
comes with straightforward instructions. You will need to download
the mod_fastcgi module from FastCGI.com:
- http://www.fastcgi.com
+ http://www.fastcgi.com/
- A version more recent than 2.2.2 is needed. If 2.2.3 or greater is
- not yet available, get one of the snapshots from October 6th or
- later:
-
- http://www.fastcgi.com/dist/
+ A version more recent than 2.2.2 is needed.
Extract the archive and follow the directions in its 'INSTALL' file.
Using the 'DSO' method is usually easiest.
@@ -143,35 +139,24 @@
write to the socket. For illustrative purposes, I will use
'/tmp/zope.soc'.
- The option to configure this is '-F (port #|socket filename)'. Edit
- your 'start' script. It's found in the root of your Zope
- installation, and it will look something like this::
-
-#! /bin/sh
-reldir=`dirname $0`
-PYTHONHOME=`cd $reldir; pwd`
-export PYTHONHOME
-exec /usr/bin/python \
- $PYTHONHOME/z2.py \
- -D "$@"
-
- Insert a line after '$PYTHONHOME/z2.py \'. If you are using
- a TCP port, it will look like this::
-
- -F 8889 \
+ This can be configured by adding a fcgi-server section in your
+ etc/zope.conf file. The section should look like this for a TCP
+ port::
- If you are using a socket, the line will look like this::
+ <fcgi-server>
+ address localhost:8889
+ </fcgi-server>
- -F /tmp/zope.soc \
+ To use a Unix domain socket instead, specify the path of the socket
+ file instead of a [hostname:]port::
- The trailing backslash is significant! You can start Zope at this
- point by running the 'start' script::
+ <fcgi-server>
+ address /tmp/zope.soc
+ </fcgi-server>
-$ ./start
+ You can start Zope at this point by running the 'runzope' script::
- Note that by default the start script starts Zope in debug mode, and
- so this command will not come back to a shell prompt until Zope
- exits.
+$ ./bin/runzope
Next, Apache must be set up to pass FastCGI requests to Zope. This
is done with a 'FastCgiExternalServer' directive in Apache's