[Zope] Zope Installation

Leo leochan72@yahoo.com
Thu, 04 Apr 2002 10:43:57 -0800


This is a multi-part message in MIME format.

--Boundary_(ID_eEqFwiNYvb2tyzz3Zk5bXQ)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7BIT

I installed my RH7.2 with apache. Just changed the "ServerName" to www.ourdomain.com. After that, I downloaded the Zope tar package and built it myself. I installed it and delete the directory with Zope. And then I downloaded the RPM version and use RPM to install it. Moreover, I installed the Zope-pcgi RPM too. Of course, I changed the httpd.conf and put in Five lines Rewrite command.:

RewriteEngine On
RewriteRule ^/static/(.*) /var/www/html/$1 [l]
RewriteRule ^/cgi-bin/(.*) /var/www/cgi-bin/$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-http-cgi,l]
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) /var/www/cgi-bin/Zope$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]

Ah, I also changed the line in <Directory /var/www/cgi-bin> from "Options None" to  "Options FollowSymLinks ExecCGI" too.

However, when I start the 2 daemons, httpd and zope. I got error message in apache log. It is something like " File does not exist :/var/wwww/cgi-bin/Zope/"

If I changed the last line of Rewrite commands to (RPM page) :

RewriteRule ^/(.*) /var/www/cgi-bin/Zope/$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]

Then, when I use client browser to link to that server (say http://192.168.1.109), it will come out a download box and let me download the file Zope.cgi. Looks like apache cannot work with cgi files.

Please help !!!

Thanks in advance

Leo

--Boundary_(ID_eEqFwiNYvb2tyzz3Zk5bXQ)
Content-type: text/html; charset=iso-8859-1
Content-transfer-encoding: 7BIT

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2715.400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I installed my RH7.2 with apache. Just changed the 
"ServerName" to <A href="http://www.ourdomain.com">www.ourdomain.com</A>. After 
that, I downloaded the Zope tar package and built it myself. I installed it and 
delete the directory with Zope. And then I downloaded the RPM version and use 
RPM to install it. Moreover, I installed the Zope-pcgi RPM too. Of course, I 
changed the httpd.conf and put in Five lines Rewrite command.:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>RewriteEngine On</FONT></DIV>
<DIV><FONT face=Arial size=2>RewriteRule ^/static/(.*) /var/www/html/$1 
[l]</FONT></DIV>
<DIV><FONT face=Arial size=2>RewriteRule ^/cgi-bin/(.*) /var/www/cgi-bin/$1 
[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-http-cgi,l]</FONT></DIV>
<DIV><FONT face=Arial size=2>RewriteCond %{HTTP:Authorization} 
^(.*)</FONT></DIV>
<DIV><FONT face=Arial size=2>RewriteRule ^(.*) /var/www/cgi-bin/Zope$1 
[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Ah,&nbsp;I also changed the line in &lt;Directory 
/var/www/cgi-bin&gt; from "Options None" to </FONT>&nbsp;<FONT face=Arial 
size=2>"Options FollowSymLinks ExecCGI" too.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>However, when I start the 2 daemons, httpd and 
zope. I got error message in apache log. It is something like " File does not 
exist :/var/wwww/cgi-bin/Zope/"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>If I changed the last line of Rewrite commands to 
(RPM page)&nbsp;:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>RewriteRule ^/(.*) /var/www/cgi-bin/Zope/$1 
[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Then, when I use client browser to link to that 
server (say <A href="http://192.168.1.109">http://192.168.1.109</A>), it will 
come out a download box and let me download the file Zope.cgi. Looks like apache 
cannot work with cgi files.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Please help !!!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks in advance</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Leo</FONT></DIV></BODY></HTML>

--Boundary_(ID_eEqFwiNYvb2tyzz3Zk5bXQ)--