ZopeHTTPServer does not support virtual hosting. It is really a very simple server based on CGIHTTPServer. ZServer *does* support and supports it rather well. Checking out Sam's Medusa site http://www.nightmare.com/medusa. It might be handly to fetch yourself a full copy of medusa and play with it. It is really very cool.
I tried ZServer and when I start it up I get: cx757770-a >./start.py log: adding channel <trigger at 8108c70> Traceback (innermost last): File "./start.py", line 20, in ? import zope_handler File "./zope_handler.py", line 121, in ? from PubCore import handle File "./PubCore/__init__.py", line 86, in ? import ZRendezvous File "./PubCore/ZRendezvous.py", line 88, in ? from ZServerPublisher import ZServerPublisher File "./PubCore/ZServerPublisher.py", line 86, in ? from ZPublisher import publish_module ImportError: No module named ZPublisher cx757770-a > It wants ZPublisher...help anybody?? Daren
For a quick fix add the following lines in the start.py file before the import zope_handler import sys,os sys.path.insert(0,os.path.join('..','lib','python')) Pavlos On Thu, 1 Apr 1999, Daren Sefcik wrote:
ZopeHTTPServer does not support virtual hosting. It is really a very simple server based on CGIHTTPServer. ZServer *does* support and supports it rather well. Checking out Sam's Medusa site http://www.nightmare.com/medusa. It might be handly to fetch yourself a full copy of medusa and play with it. It is really very cool.
I tried ZServer and when I start it up I get:
cx757770-a >./start.py log: adding channel <trigger at 8108c70> Traceback (innermost last): File "./start.py", line 20, in ? import zope_handler File "./zope_handler.py", line 121, in ? from PubCore import handle File "./PubCore/__init__.py", line 86, in ? import ZRendezvous File "./PubCore/ZRendezvous.py", line 88, in ? from ZServerPublisher import ZServerPublisher File "./PubCore/ZServerPublisher.py", line 86, in ? from ZPublisher import publish_module ImportError: No module named ZPublisher cx757770-a >
It wants ZPublisher...help anybody??
Daren
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
On Thu, Apr 01, 1999 at 12:33:07PM -0500, Pavlos Christoforou wrote:
For a quick fix add the following lines in the start.py file before the import zope_handler
import sys,os sys.path.insert(0,os.path.join('..','lib','python'))
I don't know where this went since it was in one of the pre-releases I looked at, but here's what I have in there, and it's a bit more generic: ZOPE_HOME='/usr/local/zope/Zope' import sys, os sys.path.insert(0,os.path.join(ZOPE_HOME,'lib','python')) This works better, and I'm always careful of relative paths in situations like this. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright
I had the same problem trying to get ZServer to run on my LinuxPPC setup. I have been trying multiple things to get Zope running on LinuxPPC. I edited the start.py file as suggested here by Chris. The only change I made was make ZOPE_HOME point to my Zope directory in /opt/Zope. I cd'd to the /opt/Zope directory and did... # /usr/local/bin/python start.py log: adding channel <trigger at 1905518> Segmentation fault # Any ideas? This is running on LinuxPPC R4.1 which is based on RedHat 5.0 Hurricane sources. I compiled Python 1.5.1 from source with the --with-thread option. Zope is from the Zope-1.10.2.ppc.rpm which was created from Sean Summers Zope src.rpm. Thanks, Jimmie Houchin At 12:44 PM -0500 4/1/99, Christopher Petrilli wrote:
On Thu, Apr 01, 1999 at 12:33:07PM -0500, Pavlos Christoforou wrote:
For a quick fix add the following lines in the start.py file before the import zope_handler
import sys,os sys.path.insert(0,os.path.join('..','lib','python'))
I don't know where this went since it was in one of the pre-releases I looked at, but here's what I have in there, and it's a bit more generic:
ZOPE_HOME='/usr/local/zope/Zope'
import sys, os sys.path.insert(0,os.path.join(ZOPE_HOME,'lib','python'))
This works better, and I'm always careful of relative paths in situations like this.
Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright
_______________________________________________
On Thu, 1 Apr 1999, Pavlos Christoforou wrote:
For a quick fix add the following lines in the start.py file before the import zope_handler
import sys,os sys.path.insert(0,os.path.join('..','lib','python'))
Interesting..that works..why would this not be part of the original code? Why is this just "a quick fix"?? Daren
participants (4)
-
Christopher Petrilli -
Daren Sefcik -
Jimmie Houchin -
Pavlos Christoforou