[Zope] PCGI and MS-IIS on Nt5

Paul Zwarts paul.zwarts@oratrix.com
Wed, 31 Jan 2001 11:37:38 +0100


--------------CB460CD39794EA4712A9E4C1
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi there,


>For that the easiest solution is to put a redirect in your root to:
>http://localhost/scripts/zope.pcgi either through a server setting or
>through an asp script with a "Response.Redirect('scripts/zope.pcgi')"

>You could also put your zope.pcgi in your root folder and make it a default
>document (just like 'default.htm', 'index.asp' etc), but somehow I guess
>that that will bring your troubles later on.

Thanks for the input... but it doesnt seem to work.

I get:

<TD WIDTH="90%">
  <H2>Zope Error</H2>
  <P>Zope has encountered an error while publishing this resource.
  </P>
  <P><STRONG>exceptions.ImportError</STRONG></P>

  (<class ZODB.POSException.StorageSystemError at 668838>, 'Could not lock the
database file.  There must be\012another process that has opened the
file.\012<p>')
<!--
Traceback (innermost last):
  File E:\!BRAIN~1\lib\python\ZPublisher\Publish.py, line 222, in publish_module

  File E:\!BRAIN~1\lib\python\ZPublisher\Publish.py, line 130, in publish
  File E:\!BRAIN~1\lib\python\ZPublisher\Publish.py, line 270, in
get_module_info
  File E:\!BRAIN~1\lib\python\Zope\__init__.py, line 110, in ?
  File E:\!BRAIN~1\lib\python\ZODB\FileStorage.py, line 262, in __init__
  File E:\!BRAIN~1\lib\python\ZODB\lock_file.py, line 115, in lock_file
ImportError: (see above)

For that matter, it seems the normal convention doesnt work anymore of going
through the pcgi file, so something has definatley gone wrong. Should IIS be
configured for the pcgi file to be a header or...?

I'll try the siteaccess, but i assume its in 2.3? how is it invoke if it is a
built in product?

Thanks again,
Paz

Max M wrote:

> From: Paul Zwarts
>
> >so, technically I did set it up correctly, but I want to configure the
> >default document so when I just put in:
>
> >http://localhost
>
> For that the easiest solution is to put a redirect in your root to:
> http://localhost/scripts/zope.pcgi either through a server setting or
> through an asp script with a "Response.Redirect('scripts/zope.pcgi')"
>
> You could also put your zope.pcgi in your root folder and make it a default
> document (just like 'default.htm', 'index.asp' etc), but somehow I guess
> that that will bring your troubles later on.
>
> >I will get the root folder of my zopesite WITH the PCGI working. Now, I
> >need to use:
>
> >http://localhost:8080
>
> >If I goto http://localhost/scripts/zope.pcgi, I get what I want with the
> >PCGI, but I cannot use the site because the links do not work.
>
> If you are not using Zope 2.3 You will probably want to use:
>
> http://www.zope.org/Members/4am/SiteAccess2
>
> It can change your links so that they will match the ugly /scripts/zope.pcgi
> url that you get through IIS.
>
> Regards Max M
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

--------------CB460CD39794EA4712A9E4C1
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi there,
<br>&nbsp;
<p>>For that the easiest solution is to put a redirect in your root to:
<br><a href="http://localhost/scripts/zope.pcgi">>http://localhost/scripts/zope.pcgi</a>
either through a server setting or
<br>>through an asp script with a "Response.Redirect('scripts/zope.pcgi')"
<p>>You could also put your zope.pcgi in your root folder and make it a
default
<br>>document (just like 'default.htm', 'index.asp' etc), but somehow I
guess
<br>>that that will bring your troubles later on.
<p>Thanks for the input... but it doesnt seem to work.
<p>I get:
<p>&lt;TD WIDTH="90%">
<br>&nbsp; &lt;H2>Zope Error&lt;/H2>
<br>&nbsp; &lt;P>Zope has encountered an error while publishing this resource.
<br>&nbsp; &lt;/P>
<br>&nbsp; &lt;P>&lt;STRONG>exceptions.ImportError&lt;/STRONG>&lt;/P>
<br>&nbsp;
<br>&nbsp; (&lt;class ZODB.POSException.StorageSystemError at 668838>,
'Could not lock the database file.&nbsp; There must be\012another process
that has opened the file.\012&lt;p>')
<br>&lt;!--
<br>Traceback (innermost last):
<br>&nbsp; File E:\!BRAIN~1\lib\python\ZPublisher\Publish.py, line 222,
in publish_module
<br>&nbsp; File E:\!BRAIN~1\lib\python\ZPublisher\Publish.py, line 130,
in publish
<br>&nbsp; File E:\!BRAIN~1\lib\python\ZPublisher\Publish.py, line 270,
in get_module_info
<br>&nbsp; File E:\!BRAIN~1\lib\python\Zope\__init__.py, line 110, in ?
<br>&nbsp; File E:\!BRAIN~1\lib\python\ZODB\FileStorage.py, line 262, in
__init__
<br>&nbsp; File E:\!BRAIN~1\lib\python\ZODB\lock_file.py, line 115, in
lock_file
<br>ImportError: (see above)
<p>For that matter, it seems the normal convention doesnt work anymore
of going through the pcgi file, so something has definatley gone wrong.
Should IIS be configured for the pcgi file to be a header or...?
<p>I'll try the siteaccess, but i assume its in 2.3? how is it invoke if
it is a built in product?
<p>Thanks again,
<br>Paz
<p>Max M wrote:
<blockquote TYPE=CITE>From: Paul Zwarts
<p>>so, technically I did set it up correctly, but I want to configure
the
<br>>default document so when I just put in:
<p>><a href="http://localhost">http://localhost</a>
<p>For that the easiest solution is to put a redirect in your root to:
<br><a href="http://localhost/scripts/zope.pcgi">http://localhost/scripts/zope.pcgi</a>
either through a server setting or
<br>through an asp script with a "Response.Redirect('scripts/zope.pcgi')"
<p>You could also put your zope.pcgi in your root folder and make it a
default
<br>document (just like 'default.htm', 'index.asp' etc), but somehow I
guess
<br>that that will bring your troubles later on.
<p>>I will get the root folder of my zopesite WITH the PCGI working. Now,
I
<br>>need to use:
<p>><a href="http://localhost:8080">http://localhost:8080</a>
<p>>If I goto <a href="http://localhost/scripts/zope.pcgi">http://localhost/scripts/zope.pcgi</a>,
I get what I want with the
<br>>PCGI, but I cannot use the site because the links do not work.
<p>If you are not using Zope 2.3 You will probably want to use:
<p><a href="http://www.zope.org/Members/4am/SiteAccess2">http://www.zope.org/Members/4am/SiteAccess2</a>
<p>It can change your links so that they will match the ugly /scripts/zope.pcgi
<br>url that you get through IIS.
<p>Regards Max M
<p>_______________________________________________
<br>Zope maillist&nbsp; -&nbsp; Zope@zope.org
<br><a href="http://lists.zope.org/mailman/listinfo/zope">http://lists.zope.org/mailman/listinfo/zope</a>
<br>**&nbsp;&nbsp; No cross posts or HTML encoding!&nbsp; **
<br>(Related lists -
<br>&nbsp;<a href="http://lists.zope.org/mailman/listinfo/zope-announce">http://lists.zope.org/mailman/listinfo/zope-announce</a>
<br>&nbsp;<a href="http://lists.zope.org/mailman/listinfo/zope-dev">http://lists.zope.org/mailman/listinfo/zope-dev</a>
)</blockquote>
</html>

--------------CB460CD39794EA4712A9E4C1--