I've finally gotten around to fixing the most serious outstanding problems with mod_pcgi; it is now actually usable. PATH_INFO is now set correctly, so Zope creates URL references that are reasonable, and the Authorization HTTP header is passed along so that you can actually log in. In my limited testing, everything I tried in Zope seemed to work fine using mod_pcgi. In short, you could actually start using it for real now. The code is in the usual place, ftp://starship.python.net/pub/crew/amk/new/ Please download it and try it out; I'm going to work on some Web pages and documentation for it. -- A.M. Kuchling http://starship.python.net/crew/amk/ Well, you are the best I have, Cluracan, and to say that is to say little indeed. -- Queen Titania, in SANDMAN #52: "Cluracan's Tale"
Hello! On Sat, 19 Jun 1999, A.M. Kuchling wrote:
The code is in the usual place, ftp://starship.python.net/pub/crew/amk/new/ Please download it and try it out; I'm going to work on some Web pages and documentation for it.
Tried it on Solaris 2.5.1, Apache 1.3.6. Zope satrted and worked. I went to /manage/ screen and run through some screens, browsing what's going on. All looked good. Then I tried to edit a DTML document and pressed "Change". Zope failed, Apache sent and browser displayed "Internal server error" and Zope disappeared from memory, leaving zombie process. Trying to go to Zope - "Resource temp unavail". I have to restart apache (to reap zombie) to run Zope. The error is reproduceable - every time I tried to edit DTML Zope died to zombie. With Zope.cgi all goes well - I can edit DTML documents and view results...
-- A.M. Kuchling http://starship.python.net/crew/amk/ Well, you are the best I have, Cluracan, and to say that is to say little indeed. -- Queen Titania, in SANDMAN #52: "Cluracan's Tale"
Oleg. ---- Oleg Broytmann Netskate/Inter.Net.Ru phd@emerald.netskate.ru Programmers don't die, they just GOSUB without RETURN.
Oleg Broytmann writes:
Then I tried to edit a DTML document and pressed "Change". Zope failed, Apache sent and browser displayed "Internal server error" and Zope disappeared from memory, leaving zombie process.
Eek, you're right; the Apache child dumps core. Luckily, the fix is simple. Edit mod_pcgi.c, and around line 419, change this line: int rsize, len_read, rpos; to int rsize, len_read, rpos = 0; Stupid forgotten initialization... -- A.M. Kuchling http://starship.python.net/crew/amk/ This is not a technical issue so much as a human issue; we are limited and so is our time. (Is this a bug or a feature of time? Careful; trick question!) -- Fred Drake on the Documentation SIG, 9 Sep 1998
Hello! The idea of "mount poin" (PCGI_Mount /pcgi/ directive) made me suspicious. Does it mean I can use mod_pcgi only limited way? Few quetsions, and I am afraid the answer will be "No, you cannot". 1. Could I redirect different locations to different Zope folders? With Zope.cgi and mod_rewrite I can do it: RewriteRule ^/z1/(.*) /usr/local/apache/cgi-bin/Zope.cgi/z1/$1 RewriteRule ^/z2/(.*) /usr/local/apache/cgi-bin/Zope.cgi/manage/z2/$1 2. What about virtual hosts? Zope.cgi allows it: <VirtualHost 192.168.0.1> ServerName www.server1 RewriteRule ^/Zope/(.*) /usr/local/apache/cgi-bin/Zope.cgi/virtual1/$1 </VirtualHost> <VirtualHost 192.168.0.1> ServerName www.server2 RewriteRule ^/Zope/(.*) /usr/local/apache/cgi-bin/Zope.cgi/virtual2/$1 </VirtualHost> 3. How can I run different Zopes on the same machine? With Zope.cgi: RewriteRule ^/z1/(.*) /usr/local/apache/cgi-bin/Zope1.cgi/$1 RewriteRule ^/z2/(.*) /usr/local/apache/cgi-bin/Zope2.cgi/$1 Oleg. ---- Oleg Broytmann Netskate/Inter.Net.Ru phd@emerald.netskate.ru Programmers don't die, they just GOSUB without RETURN.
Oleg Broytmann writes:
The idea of "mount point" (PCGI_Mount /pcgi/ directive) made me suspicious. Does it mean I can use mod_pcgi only limited way?
The mount point idea comes from mod_jserv, where you have servlet zones mounted at different URIs in the tree.
1. Could I redirect different locations to different Zope folders? With Zope.cgi and mod_rewrite I can do it:
Currently the list of mount points contains only a single string, the URI prefix of the mount point. It would not be difficult to expand the list to contain structs instead, each struct containing mount-specific information. But I'd like to hold off on that and see if people really run multiple Zope processes on the same server. A more critical issue is to figure out why the Zope2 folder management doesn't work under mod_pcgi; you can't check off an object and hit the 'delete' button, because Zope has output a FORM element with an action of '/pcgi'. I'm not sure what's going on to cause this... probably a missed environment variable. -- A.M. Kuchling http://starship.python.net/crew/amk/ I wish I were an angry shoe, a bodiless balloon. Cut off my covenant with God the pain of orthopedic glue. -- Darling-Come-Home's song in DOOM PATROL #25
At 15:36 22/06/99 , Andrew M. Kuchling wrote:
But I'd like to hold off on that and see if people really run multiple Zope processes on the same server.
Of course they will. Especially Zope hosting providers want to do this. ZDP runs alongside other Zope processes on one Apache server. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
On Tue, 22 Jun 1999, Andrew M. Kuchling wrote:
Currently the list of mount points contains only a single string, the URI prefix of the mount point. It would not be difficult to expand the list to contain structs instead, each struct containing mount-specific information. But I'd like to hold off on that and see if people really run multiple Zope processes on the same server.
Ok, I am not running multiple Zopes, but I definetly run virtual servers. Could PCGI_Mount be used in <VirtualServer></VirtualServer>? To which object in Zope it could be mounted?
-- A.M. Kuchling http://starship.python.net/crew/amk/ I wish I were an angry shoe, a bodiless balloon. Cut off my covenant with God the pain of orthopedic glue. -- Darling-Come-Home's song in DOOM PATROL #25
Oleg. ---- Oleg Broytmann Netskate/Inter.Net.Ru phd@emerald.netskate.ru Programmers don't die, they just GOSUB without RETURN.
Oleg Broytmann writes:
Ok, I am not running multiple Zopes, but I definetly run virtual servers. Could PCGI_Mount be used in <VirtualServer></VirtualServer>? To which object in Zope it could be mounted?
I think it could be used, but it would still apply globally because I haven't written the merge_config function that's used to combine the global settings with virtual host-specific ones. -- A.M. Kuchling http://starship.python.net/crew/amk/ Perl is worse than Python because people wanted it worse. -- Larry Wall, 14 Oct 1998
In article <14191.37243.292518.55743@amarok.cnri.reston.va.us>, Andrew M. Kuchling <akuchlin@mems-exchange.org> wrote:
mount-specific information. But I'd like to hold off on that and see if people really run multiple Zope processes on the same server.
I do; I run a separate server for developing product modules and trying out ideas. Ideally I'd do it on a separate machine, but... At SwRI we also used to run two different versions of Principia frequently for similar reasons. At any rate, I'd be surprised if I were the only one.
On Tue, 22 Jun 1999, Andrew M. Kuchling wrote:
Oleg Broytmann writes:
The idea of "mount point" (PCGI_Mount /pcgi/ directive) made me suspicious. Does it mean I can use mod_pcgi only limited way?
The mount point idea comes from mod_jserv, where you have servlet zones mounted at different URIs in the tree.
1. Could I redirect different locations to different Zope folders? With Zope.cgi and mod_rewrite I can do it:
Currently the list of mount points contains only a single string, the URI prefix of the mount point. It would not be difficult to expand the list to contain structs instead, each struct containing mount-specific information. But I'd like to hold off on that and see if people really run multiple Zope processes on the same server.
We're running about 20, does that count? This would be very beneficial to ISPs. --------------------------------------------------- - Scott Robertson Phone: 714.972.2299 - - CodeIt Computing Fax: 714.972.2399 - - http://codeit.com - ---------------------------------------------------
Hi! On Sun, 20 Jun 1999, Andrew M. Kuchling wrote:
Eek, you're right; the Apache child dumps core. Luckily, the fix is simple. Edit mod_pcgi.c, and around line 419, change this line:
int rsize, len_read, rpos; to int rsize, len_read, rpos = 0;
This helped a bit, but not much. I can start Zope from mod_pcgi and use it. But after I shutted Zope down, I cannot start it using Zope.cgi - "resource temp unavail". I have to restart Apache to use Zope.cgi :( If you don't mind, I'm sending you some minor patches (attached) for cleaner compilation. -Wall still gives some warnings, but they are not significant, I think...
-- A.M. Kuchling http://starship.python.net/crew/amk/ This is not a technical issue so much as a human issue; we are limited and so is our time. (Is this a bug or a feature of time? Careful; trick question!) -- Fred Drake on the Documentation SIG, 9 Sep 1998
Oleg. ---- Oleg Broytmann National Research Surgery Centre phd2@email.com Programmers don't die, they just GOSUB without RETURN.
participants (6)
-
A.M. Kuchling -
Andrew M. Kuchling -
Martijn Pieters -
Oleg Broytmann -
Scott Robertson -
tsarna@endicor.com