Hello- I've been trying to get our existing Zope server (previously with ZServer handling http) under Apache. Here are some problems I ran into: 1. My biggest problem was that Zope uses the SCRIPT_NAME environment variable to construct it's notion of the base URI. Unfortunately, SCRIPT_NAME gives the actual script name, not the URI. So if you do a ScriptAlias, or any rewriting inside Apache, this isn't necessarily valid. An adequate solution seems to be to change PYTHONHOME/lib/python/ZPublisher/HTTPRequest.py line 211, to use DOCUMENT_URI instead of SCRIPT_NAME. 2. I couldn't get Apache with FastCGI and Zope working reliably. On about 1% of requests, garbage would be returned, resulting in random broken images or pages full of gibberish. This is with the Oct 06 snapshot of FastCGI, compiled into Apache-1.3.12. Anyone else seen anything like this? Ed
Ed Thomson wrote:
2. I couldn't get Apache with FastCGI and Zope working reliably. On about 1% of requests, garbage would be returned, resulting in random broken images or pages full of gibberish. This is with the Oct 06 snapshot of FastCGI, compiled into Apache-1.3.12.
Anyone else seen anything like this?
"1%? You were _lucky_!" (in my best Yorkshire accent). I was getting a much higher rate of errors (admittedly, I was only using the management screen at the time as I was just starting out with Zope), but I ended up switching to mod_pcgi2 to cure these problems. The problem has been mentioned before on the mailing list, but I'm not sure if a solution has been found. Platform is (for data point purposes): RedHat 6.1, Apache 1.3.9, Zope 2.1.4 and fastcgi Oct06 snapshot. Regards, Daryl Tester
2. I couldn't get Apache with FastCGI and Zope working reliably. On about 1% of requests, garbage would be returned, resulting in random broken images or pages full of gibberish. This is with the Oct 06 snapshot of FastCGI, compiled into Apache-1.3.12.
Anyone else seen anything like this?
I believe the problem is with ZServer/FCGIServer.py. If you pull the latest version from CVS (1.7), the problem should go away. I had this problem a LOT when I first started using it, but after getting the latest FCGIServer.py (1.5.4.1 at the time), the problem went away completely. _______________________ Ron Bickers Logic Etc, Inc. rbickers@logicetc.com
participants (3)
-
Daryl Tester -
Ed Thomson -
Ron Bickers