[Zope] Problem with Zope 2.0.0b1 and Apache
Michel Pelletier
michel@digicool.com
Sun, 01 Aug 1999 19:30:03 -0400
JOHN COOK wrote:
>
> Hi,
>
> I have been able to get Zope running with ZServer fine, but I would prefer
> to run it using Apache, as I am already hosting other sites with Apache on
> the same box. I get an "Internal Server Error" and when I look in the
> pcgi.log file, I get the following statement:
>
> Sun Aug 1 06:56:28 1999 unable to publish module
> Traceback (innermost last):
> File "/usr/local/zope/pcgi/pcgi_publisher.py", line 303, in handler
>
> self.publish_module(self.moduleName,stdin=stdin,stdout=stdout,stderr=stderr,environ=env)
> File "/usr/local/zope/lib/python/ZPublisher/Publish.py", line 265, in
> publish_module
> response.exception(1, v)
> File "/usr/local/zope/lib/python/ZPublisher/HTTPResponse.py", line 600,
> in exception
> if isinstance(b,Exception): b=str(b)
> TypeError: second argument must be a class
>
Hm. As a workaround have you tried running PCGI into ZServer? ZServer
supports PCGI in conjuction with another webserver. In fact, if you
don't use ZServer, your application won't be multi-threaded. Using
ZServer for PCGI is probably the prefered way to run with 2.0b.
ZServer will start up with PCGI support with the '-p' option. This
causes it to look for its PCGI resource file, by default Zope.cgi
reletaive to the Main Zope directory. Alternately you can specify a
path to the PCGI resource file by puting the path to the file after the
'-p' open. Like '-p /path/to/Zope.cgi'.
Then configure PCGI as you would normally to access that PCGI file. For
example, on linux, you can drop Zap right in and have it work with PCGI
with ZServer with no change to the Zap configuration.
Note that you do have to run z2.py as a backgound daemon, PCGI will not
start Zserver for you. It will ,however, if configured properly (as it
should be), if ZServer is not running, PCGI will file up Zope the Old
Fasioned way. This is what apears not to work for you however.
-Michel
> Any help would be greatly appreciated.
>
> John
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>
> (To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
>
> For developer-specific issues, zope-dev@zope.org -
> http://www.zope.org/mailman/listinfo/zope-dev )