@@ -2,8 +2,8 @@ FAQ Wizard
22----------
33
44Author: Guido van Rossum <
[email protected] >
5- Version: 0.7
6- Date: 14 August 1997
5+ Version: 0.8
6+ Date: 27 August 1997
77
88
99This is a CGI program that maintains a user-editable FAQ. It uses RCS
@@ -27,14 +27,20 @@ Setup Information
2727
2828This assumes you are familiar with Python, with your http server, and
2929with running CGI scripts under your http server. You need Python 1.4
30- or better.
30+ or better.
31+
32+ Select a place where the Python modules that constitute the FAQ wizard
33+ will live (the directory where you unpacked it is an obvious choice).
34+ This will be called the SRCDIR. This directory should not be writable
35+ by other users of your system (since they would be able to execute
36+ arbitrary code by invoking the FAQ wizard's CGI script).
3137
3238Create a dedicated working directory, preferably one that's not
33- directly reachable from your http server. Drop the Python modules
34- mentioned above in the working directory . Create a subdirectory named
35- RCS. Make both the working directory and the RCS subdirectory
36- wrld-writable. (This is essential, since the FAQ wizard runs as use
37- nobody, and needs to create additional files here!)
39+ directly reachable from your http server. This will be called the
40+ FAQDIR. Create a subdirectory named RCS . Make both the working
41+ directory and the RCS subdirectory wrld-writable. (This is essential,
42+ since the FAQ wizard runs as use nobody, and needs to create
43+ additional files here!)
3844
3945Edit faqconf.py to reflect your setup. You only need to edit the top
4046part, up till the line of all dashes. The comments should guide you
@@ -45,12 +51,13 @@ Don't forget to edit the SECTION_TITLES variables to reflect the set
4551of section titles for your FAQ!
4652
4753Next, edit faqw.py to reflect the pathname of your Python interpreter
48- and the directory you just created. Then install in in your cgi-bin
49- directory. Make sure that it is world-executable. You should now be
50- able to connect to the FAQ wizard by entering the following URL in
51- your web client (subsituting the appropriate host and port for
52- "your.web.server", and perhaps specifying a different directory for
53- "cgi-bin" if local conventions so dictate):
54+ and the values for SRCDIR and FAQDIR that you just chose. Then
55+ install faqw.py in your cgi-bin directory. Make sure that it is
56+ world-executable. You should now be able to connect to the FAQ wizard
57+ by entering the following URL in your web client (subsituting the
58+ appropriate host and port for "your.web.server", and perhaps
59+ specifying a different directory for "cgi-bin" if local conventions so
60+ dictate):
5461
5562 http://your.web.server/cgi-bin/faqw.py
5663
@@ -61,11 +68,11 @@ and debugging CGI scripts, including setup debugging. This
6168documentation is repeated in the doc string in the cgi module; try
6269``import cgi; print cgi.__doc__''.
6370
64- Assuming this woks , you should now be able to add the first entry to
71+ Assuming this works , you should now be able to add the first entry to
6572your FAQ using the FAQ wizard interface. This creates a file
6673faq01.001.htp in your working directory and an RCS revision history
6774file faq01.001.htp,v in the RCS subdirectory. You can now exercise
6875the other FAQ wizard features (search, index, whole FAQ, what's new,
69- and roulette ).
76+ roulette, and so on ).
7077
7178--Guido van Rossum (home page: http://www.python.org/~guido/)
0 commit comments