[Zope] BS BS BS BS BS BS

Tony McDonald tony.mcdonald@ncl.ac.uk
Sat, 12 Jun 1999 07:51:40 +0100


> Thanks Tony,
> 
> I tried your Rewrite and did get a little further.     I went ahead and
> upgraded to the apache-1.3.6.    Looking at the rewrites from the
> installation docs and the zap and the ones posted, I am confused as to what
> is the objective here.     Exactly what part of the uri are we supposed to
> be rewriting?   Are we altering a call for Zope.cgi or we altering anything
> after the Zope.cgi/*?
>

(I've cc'ed this to the list, as it might help others, and the last
paragraph is something I'd like an answer to as well)

With the Rewrite rule as written, I *believe* that the url
http://bogus.net/tester/test_script will be sent to the Zope.cgi as
tester/test_script.

Therefore it seems that all URLs for the particular server will get sent to
Zope (I am trying to figure out a method whereby a subset of URLs on my
virtual server get sent to Apache for 'normal' processing) and

> Also I was wondering were do -you- keep your Zope.cgi? and what permission
> do you have on it (and ownership)?
>

In the cgi-bin directory referred to in the Rewrite rule. Note that there
*seems* to be problems with permissions with the pcgi stuff, ie you need to
be pretty lax...

The cgi-bin directory:
drwxr-xr-x   3 nnle     fmcc          512 Mar  3 23:08 cgi-bin/

The Zope.cgi
-rwxr-xr-x   1 nnle     fmcc          669 Mar  3 23:08 Zope.cgi*

and probably most important of all, the var directory
drwxrwxrwx   5 nnle     fmcc         1024 Jun 11 12:12 var/

...and it's contents...
-rwxrwxrwx   1 nnle     fmcc     13923900 Jun 11 15:36 Data.bbb*
-rw-r--r--   1 nnle     fmcc        12999 Jun 11 12:03 Data.bbb.index
-rwxrwxrwx   1 nnle     fmcc            9 Mar  4 16:14 Data.bbb.trans*
-rw-r--r--   1 nnle     fmcc           92 Jun 11 12:03 Data.bbb.trans.index
-rwxrwxrwx   1 nnle     fmcc          516 Feb 16 00:18 README*
-rw-r--r--   1 nnle     fmcc         2143 Jun  8 05:51 ZServer.log
-rw-r--r--   1 nnle     fmcc         4963 Mar  5 21:05 bbb.py
-rw-r--r--   1 nnle     fmcc        11280 Jun  3 08:19 bbb2.py
-rw-rw-rw-   1 nobody   fmcc         2589 Jun 11 16:17 pcgi.log
-rw-rw-rw-   1 nnle     fmcc            4 Jun 11 12:12 pcgi.pid
srwxrwxrwx   1 nobody   fmcc            0 Jun 11 12:12 pcgi.soc=
-rwxrwxrwx   1 nnle     fmcc       221328 Jun 11 12:03 serve.errors*
-rwxrwxrwx   1 nnle     fmcc         1329 Jun 11 12:03 serve.log*
-rw-r--r--   1 nnle     fmcc            4 Jun 10 09:04 serve.pid

the 'nobody' group files are created by Apache via the cgi call.
I had to set the Data.bbb and Data.bbb files via chmod 777 before I could
get the pcgi version of Zope to work.

To the list and the DC guys:
This setup works for me (ok, you can all stop reading now), but it's pretty
kludgey. If it's an effect of the various incarnations of Apache and Rewrite
rules (as Michel wrote earlier), then ok I can live with it. There does seem
a 'black magic' angle to getting PCGI to work however (but after my latest
debacle of trashing my Database by running the CGI and :9673 Zopes in
parallel), I'll likely as not, stick with the CGI route..particularly as
mod_pcgi has recently turned up.

tone.