SetupConfDa.al

2000-12-21 Thread Myrddin
Hello. :) I had mod_perl and Embperl working just fine until I decided to upgrade my apache/mod_perl bits (largely because there was demand to also allow php to work, which meant having to go through the headache of building a new apache that supported mod_perl, mod_php, ssl, etc). I used

Re: Fwd: [speedycgi] Speedycgi scales better than mod_perl withscripts that contain un-shared memory

2000-12-21 Thread Perrin Harkins
Gunther Birznieks wrote: Sam just posted this to the speedycgi list just now. [...] The underlying problem in mod_perl is that apache likes to spread out web requests to as many httpd's, and therefore as many mod_perl interpreters, as possible using an LRU selection processes for picking

Re: SetupConfDa.al

2000-12-21 Thread Gerald Richter
Embperl wasn't installed at all before, to get the newest version from CPAN was the correct solution. I suspected I might need to upgrade my Embperl, so I fired off the old 'perl -MCPAN -e shell' and tried to 'install HTML::Embperl'... the only problem is that during the test phase, it keeps

Re: sorting subroutine and global variables

2000-12-21 Thread Alexander Farber (EED)
Hi, thanks for your reply, Stas Bekman wrote: On Wed, 20 Dec 2000, Alexander Farber (EED) wrote: sub mysort { my $param = $query - param ('sort') || 'MHO'; # XXX global $query, # not mod_perl clean? return $a - {$param} cmp

Re: POST with PERL

2000-12-21 Thread Glorfindel
Hi, You should not try to post TO a flat html filebut only FROM it. Hope it help. [EMAIL PROTECTED] wrote: Hi! I have a little problem. A wrote a perl-script to manage guestbook-like section of my page. Script is working, but from the shell. When I try to post a data through html

Re: fork inherits socket connection

2000-12-21 Thread Kees Vonk 7249 24549
Below is a solution to this problem: * fork the long running process from mod_perl * and be able to restart the server o without killing this process o without this process keeping the socket busy and thus preventing the server restart Thanks to Doug for the hint. You

Re: sorting subroutine and global variables

2000-12-21 Thread Stas Bekman
On Thu, 21 Dec 2000, Alexander Farber (EED) wrote: Stas Bekman wrote: On Wed, 20 Dec 2000, Alexander Farber (EED) wrote: sub mysort { my $param = $query - param ('sort') || 'MHO'; # XXX global $query, # not mod_perl clean?

Re: fork inherits socket connection

2000-12-21 Thread Stas Bekman
On Thu, 21 Dec 2000, Kees Vonk 7249 24549 wrote: Below is a solution to this problem: * fork the long running process from mod_perl * and be able to restart the server o without killing this process o without this process keeping the socket busy and thus preventing

Re: Fwd: [speedycgi] Speedycgi scales better than mod_perl withscripts that contain un-shared memory

2000-12-21 Thread Gunther Birznieks
I think you could actually make speedycgi even better for shared memory usage by creating a special directive which would indicate to speedycgi to preload a series of modules. And then to tell speedy cgi to do forking of that "master" backend preloaded module process and hand control over to

Re: fork inherits socket connection

2000-12-21 Thread Stas Bekman
On Thu, 21 Dec 2000, Kees Vonk 7249 24549 wrote: BTW, in the official release it'll be called cleanup_for_exec(), so you better use this one from the beginning. Does that mean I don't have to patch SubProcess.xs? Is cleanup_for_exec available by default? You'll have it in the next

Re: Fwd: [speedycgi] Speedycgi scales better than mod_perl with scripts that contain un-shared memory

2000-12-21 Thread Joe Schaefer
[ Sorry for accidentally spamming people on the list. I was ticked off by this "benchmark", and accidentally forgot to clean up the reply names. I won't let it happen again :( ] Matt Sergeant [EMAIL PROTECTED] writes: On Thu, 21 Dec 2000, Ken Williams wrote: Well then, why

[ANNOUNCE]: mod_perl Pocket Reference

2000-12-21 Thread Andrew Ford
I have just heard from my editor at O'Reilly that the "mod_perl Pocket Reference" has now been printed and should be in the bookshops shortly. I have updated the quick reference card too, but I am having technical problems (or rather TeX-nichal problems) in formatting it. Once those are

Re: slight mod_perl problem

2000-12-21 Thread Vivek Khera
"SB" == Stas Bekman [EMAIL PROTECTED] writes: startup.pl does not get repeated on a restart. However it will when started with ./apachectl start. I have never encountered this with Apache 1.3.12 or 13. SB I've just tested it -- it's not. I just tested it also, and the startup script is run

Re: Fwd: [speedycgi] Speedycgi scales better than mod_perl with scripts that contain un-shared memory

2000-12-21 Thread Joe Schaefer
Gunther Birznieks [EMAIL PROTECTED] writes: But instead he crafted an experiment to show that in this particular case (and some applications do satisfy this case) SpeedyCGI has a particular benefit. And what do I have to do to repeat it? Unlearn everything in Stas' guide? This is why

Re: Fwd: [speedycgi] Speedycgi scales better than mod_perl with scripts that contain un-shared memory

2000-12-21 Thread Gunther Birznieks
At 09:53 AM 12/21/00 -0500, Joe Schaefer wrote: [ Sorry for accidentally spamming people on the list. I was ticked off by this "benchmark", and accidentally forgot to clean up the reply names. I won't let it happen again :( ] Not sure what you mean here. Some people like the

Re: Fwd: [speedycgi] Speedycgi scales better than mod_perl with scripts that contain un-shared memory

2000-12-21 Thread Vivek Khera
"KW" == Ken Williams [EMAIL PROTECTED] writes: KW Well then, why doesn't somebody just make an Apache directive to KW control how hits are divvied out to the children? Something like According to memory, mod_perl 2.0 uses a most-recently-used strategy to pull perl interpreters from the thread

Re: Fwd: [speedycgi] Speedycgi scales better than mod_perl withscripts that contain un-shared memory

2000-12-21 Thread Keith G. Murphy
Perrin Harkins wrote: [cut] Doesn't that appear to be saying that whichever process gets into the mutex first will get the new request? In my experience running development servers on Linux it always seemed as if the the requests would continue going to the same process until a request

Re: POST with PERL

2000-12-21 Thread apache
If you just visit the script directly rather than posting to it, do you see the script source code? If so, it sounds like you have a missing / invalid ScriptAlias entry. If you just add something like: ScriptAlias /cgi-bin/ "/home/httpd/html/cgi-bin/" ... on the assumption that '/cgi-bin/' is

Apache::ASP

2000-12-21 Thread Loay Oweis
Hello I am trying to find a feasible solution for configuring an apache web server to serve asp, ssi and jsp. I am leaning towards RedHat due to my experience with it. I have tried the lated RH7.0 which comes with mod_perl but not perl-apache-asp. I have tried an Apache::ASP CPAN install with

Re: Fwd: [speedycgi] Speedycgi scales better than mod_perl withscripts that contain un-shared memory

2000-12-21 Thread Sam Horrocks
Gunther Birznieks wrote: Sam just posted this to the speedycgi list just now. [...] The underlying problem in mod_perl is that apache likes to spread out web requests to as many httpd's, and therefore as many mod_perl interpreters, as possible using an LRU selection processes for

Apache::ASP permissions problem?

2000-12-21 Thread Michael Hurwitch
I have been trying to install Apache:ASP 2.07 on Solaris 2.6 with Perl 5.6.0. When I try to load an ASP page, I get the following errors: Errors Output 1.. Can't open /tmp/.state/3d/3d8ae603196.lock: , /raid1/perl5.6.0/lib/site_perl/5.6.0/Apache/ASP.pm line 4831 Debug Output 1.. Can't open

Transfering Headers... w/ miltiple 'Set_Cookie'

2000-12-21 Thread Jason Leidigh
Hi, I have a problem with a "procy" I'm writing. The proxy mut pass the headers from the response to the response that the Apache will return to the client. I am using the following method as read from The Egal Book (Writing Apache Modules) $headers-scan(sub { $r-header_out(@_);

Re: Fwd: [speedycgi] Speedycgi scales better than mod_perl withscriptsthat contain un-shared memory

2000-12-21 Thread Stas Bekman
Folks, your discussion is not short of wrong statements that can be easily proved, but I don't find it useful. Instead please read: http://perl.apache.org/~dougm/modperl_2.0.html#new Too quote the most relevant part: "With 2.0, mod_perl has much better control over which PerlInterpreters are

Re: Apache::ASP

2000-12-21 Thread Joshua Chamas
Loay Oweis wrote: Hello I am trying to find a feasible solution for configuring an apache web server to serve asp, ssi and jsp. I am leaning towards RedHat due to my experience with it. I have tried the lated RH7.0 which comes with mod_perl but not perl-apache-asp. I have tried an

ANNOUNCE: TPC5: mod_perl track: Call For Papers

2000-12-21 Thread Stas Bekman
Ok, the CFP is officially out, let those proposals come in: All the details can be found here: http://perl.apache.org/conferences/tpc5-us/cfp.html Notice that while our cfp resembles the general CFP http://conferences.oreilly.com/perl5/ it's not the same, so don't confuse the two. Ours has the

Re: Apache::ASP permissions problem?

2000-12-21 Thread Joshua Chamas
Michael Hurwitch wrote: I have been trying to install Apache:ASP 2.07 on Solaris 2.6 with Perl 5.6.0. When I try to load an ASP page, I get the following errors: Errors Output 1.. Can't open /tmp/.state/3d/3d8ae603196.lock: , /raid1/perl5.6.0/lib/site_perl/5.6.0/Apache/ASP.pm line 4831

Performance measures of a perl script !!!

2000-12-21 Thread Edmar Edilton da Silva
Hi all, I ran some performance measures on two perl scripts under mod_perl, the first script access a Oracle database using the DBD::Oracle module and the second script access a MS SQL Server database using the DBD::Sybase module. The measured response times was very different at the two

Re: Performance measures of a perl script !!!

2000-12-21 Thread Stas Bekman
On Thu, 21 Dec 2000, Edmar Edilton da Silva wrote: Hi all, I ran some performance measures on two perl scripts under mod_perl, the first script access a Oracle database using the DBD::Oracle module and the second script access a MS SQL Server database using the

Re: Performance measures of a perl script !!!

2000-12-21 Thread Matt Sergeant
On Thu, 21 Dec 2000, Edmar Edilton da Silva wrote: Hi all, I ran some performance measures on two perl scripts under mod_perl, the first script access a Oracle database using the DBD::Oracle module and the second script access a MS SQL Server database using the DBD::Sybase

Re: Fwd: [speedycgi] Speedycgi scales better than mod_perl withscripts that contain un-shared memory

2000-12-21 Thread Sam Horrocks
Folks, your discussion is not short of wrong statements that can be easily proved, but I don't find it useful. I don't follow. Are you saying that my conclusions are wrong, but you don't want to bother explaining why? Would you agree with the following statement? Under apache-1,

Re: Fwd: [speedycgi] Speedycgi scales better than mod_perl withscripts that contain un-shared memory

2000-12-21 Thread Gunther Birznieks
At 09:16 PM 12/21/00 +0100, Stas Bekman wrote: [much removed] So the moment mod_perl 2.0 hits the shelves, this possible benefit of speedycgi over mod_perl becomes irrelevant. I think this more or less summarizes this thread. I think you are right about the summarization. However, I also think

Re: Fwd: [speedycgi] Speedycgi scales better than mod_perl withscriptsthat contain un-shared memory

2000-12-21 Thread Stas Bekman
On Thu, 21 Dec 2000, Sam Horrocks wrote: Folks, your discussion is not short of wrong statements that can be easily proved, but I don't find it useful. I don't follow. Are you saying that my conclusions are wrong, but you don't want to bother explaining why? Would you agree

Re: Fwd: [speedycgi] Speedycgi scales better than mod_perl withscripts that contain un-shared memory

2000-12-21 Thread Sam Horrocks
I've put your suggestion on the todo list. It certainly wouldn't hurt to have that feature, though I think memory sharing becomes a much much smaller issue once you switch to MRU scheduling. At the moment I think SpeedyCGI has more pressing needs though - for example multiple scripts in a

Proposals for ApacheCon 2001 in; help us choose! (fwd)

2000-12-21 Thread Stas Bekman
Well, this is new. You choose what sessions at ApacheCon you want. I don't think it's a fair approach by ApacheCon committee, as by applying this approach they are going to make the big player even bigger and kill the emerging technologies, who will definitely not get enough quotes and thus

Re: Fwd: [speedycgi] Speedycgi scales better than mod_perl withscripts that contain un-shared memory

2000-12-21 Thread Sam Horrocks
I really wasn't trying to work backwards from a benchmark. It was more of an analysis of the design, and the benchmarks bore it out. It's sort of like coming up with a theory in science - if you can't get any experimental data to back up the theory, you're in big trouble. But if you can at least

Re: Fwd: [speedycgi] Speedycgi scales better than mod_perl withscriptsthat contain un-shared memory

2000-12-21 Thread Perrin Harkins
Hi Sam, Processes 1, 2, 3 are running. 1 finishes and requests the mutex, then 2 finishes and requests the mutex, then 3 finishes and requests the mutex. So when the next three requests come in, they are handled in the same order: 1, then 2, then 3 - this is FIFO or LRU. This is bad

Re: Proposals for ApacheCon 2001 in; help us choose! (fwd)

2000-12-21 Thread Gunther Birznieks
I share your concern Stas. But I also suspect that if the suggestions looked odd, I doubt they would blindly accept the web-based votes. Can't entirely rule out bugs in the voting system and people voting multiple times... However, I think it's an excellent idea to at least get an idea of

Re: Proposals for ApacheCon 2001 in; help us choose! (fwd)

2000-12-21 Thread John K Sterling
At 02:22 AM 12/22/00 +0100, Stas Bekman wrote: Well, this is new. You choose what sessions at ApacheCon you want. I don't think it's a fair approach by ApacheCon committee, as by applying this approach they are going to make the big player even bigger and kill the emerging technologies,

Re: Proposals for ApacheCon 2001 in; help us choose! (fwd)

2000-12-21 Thread Stas Bekman
On Fri, 22 Dec 2000, Gunther Birznieks wrote: I share your concern Stas. But I also suspect that if the suggestions looked odd, I doubt they would blindly accept the web-based votes. Can't entirely rule out bugs in the voting system and people voting multiple times... However, I

Re: Fwd: [speedycgi] Speedycgi scales better than mod_perl withscripts that contain un-shared memory

2000-12-21 Thread Ken Williams
[EMAIL PROTECTED] (Perrin Harkins) wrote: Hi Sam, [snip] I am saying that since SpeedyCGI uses MRU to allocate requests to perl interpreters, it winds up using a lot fewer interpreters to handle the same number of requests. What I was saying is that it doesn't make sense for one to need

[PATCH] Apache::test docs

2000-12-21 Thread T.J. Mather
Hi, There is an error in the POD for Apache::test under the fetch method. It states that the return value of the fetch method is dependent on whether it is called under a scalar or list context, when it is actually dependent on whether it is called as a function or method. I have attached the

Re: Strangeness with Carp under mod_perl

2000-12-21 Thread Doug MacEachern
On Tue, 10 Oct 2000, darren chamberlain wrote: Hi All. This is a curiosity question, mostly. I have a simple method of sending debugging messages to the error log: use constant DEBUG = 1; # Set to 0 to turn off debugging throughout sub debug ($) { if (DEBUG) { return carp

Re: Handler is preventing redirects on missing trailing / ?

2000-12-21 Thread Doug MacEachern
On Wed, 11 Oct 2000, Clayton Mitchell wrote: I then noticed that URI's of directories lacking a trailing '/' were not being redirected in the browser and so relative links started to break. since your PerlHandler is handling the directory, you need to manage that. mod_autoindex and mod_dir

Re: Recognizing server config, like Aliases, from modules

2000-12-21 Thread Doug MacEachern
On Thu, 12 Oct 2000, Rodney Broom wrote: Hi all, I've got a set of new modules that do things like session handling, URI rewriting, authentication, etc. I've got a set of tests to prevent some rewrite problems that look like this: if ($uri =~ m|^/cgi-bin/|) { return

Re: END block aborted during httpd shutdown

2000-12-21 Thread Doug MacEachern
On Wed, 18 Oct 2000, Ernest Lergon wrote: Dear list members, dear Doug, it seems to me, that my initial mail of this thread was to long to read and to be answered - especially because the questions are in the last paragraph far down below and need scrolling of the message text ;-)) Ok,

Re: getting rid of nested sub lexical problem

2000-12-21 Thread Doug MacEachern
On Thu, 19 Oct 2000, Chris Nokleberg wrote: Following up on my post on this subject a couple of months ago, here is a proof-of-concept drop-in replacement for Apache::Registry that eliminates the "my() Scoped Variable in Nested Subroutine" problem. nice hack! It requires PERL5OPT = "-d"

Re: Replacing Authen Authz handlers

2000-12-21 Thread Doug MacEachern
On Thu, 26 Oct 2000, Bill Moseley wrote: I've got Authen and Authz protecting an entire site: location / PerlAuthenHandler My::Authen PerlAuthzHandler My::Authz AuthType Basic AuthName Test require valid-user /location I'd like to have one

Re: POST results in HTTP/1.0 (null) ??

2000-12-21 Thread Doug MacEachern
On Fri, 3 Nov 2000, Paul J. Lucas wrote: So from within a function, I'm doing my $r = Apache::Request-new( Apache-request() ); warn "request=", $r-as_string(), "\n"; and, when I to a POST request, I get: Accept: image/gif, image/x-xbitmap,

Re: lookup_uri and Environment Variables?

2000-12-21 Thread Doug MacEachern
On Sun, 5 Nov 2000, Hadmut Danisch wrote: Hi, sorry if this was discussed before or if it is a dull question, but I couldn't find any other help than subscribing to this list: I have a Perl Handler Module (PerlAuthenHandler) and want to lookup environment variables set by other

RE: Clarification of PERL_STASH_POST_DATA

2000-12-21 Thread Doug MacEachern
On Wed, 8 Nov 2000, Paul J. Lucas wrote: On Wed, 8 Nov 2000, Geoffrey Young wrote: ... Apache::RequestNotes may be able to help - it basically does cookie/get/post/upload parsing during request init and then stashes references to the data in pnotes. The result is a consistent interface

Re: cybersource generating lots of zombies

2000-12-21 Thread Doug MacEachern
On Fri, 10 Nov 2000, Peter J. Schoenster wrote: Hi, Anyone use cybersource? yep, but not using their client. (plug time) i actually had the somewhat recent pleasure of rewriting their client library from scratch. that was mostly done because the original is tied to RSA Tipem, which RSA no

Re: make fails on perlio.c

2000-12-21 Thread Doug MacEachern
On Mon, 13 Nov 2000, Bob Foster wrote: Hello Folks, I'm trying to compile mod_perl-1.24_01with apache_1.3.14 on Solaris 2.6. Everything works OK until it hits src/modules/perl/perlio.c and then it fails with the following: perlio.c:90: parse error before `Sfdisc_t' perlio.c:90:

Re: trouble compiling mod_perl-1.24_01

2000-12-21 Thread Doug MacEachern
On Wed, 15 Nov 2000, Jere C. Julian, Jr. wrote: I'm on a FreeBSD 3.4-RELEASE box and I've just built and tested apache 1.3.14 from source. Then I try to build mod_perl with the following commands and get the errors below. ... Symbol.xs:106: `na' undeclared (first use this function)

Re: return DONE;

2000-12-21 Thread Doug MacEachern
On Wed, 15 Nov 2000, Todd Finney wrote: Is returning DONE a Bad Thing? no. might not be what you want in certain cases, but difficult to guess what you're doing.

Re: Fwd: [speedycgi] Speedycgi scales better than mod_perl withscriptsthat contain un-shared memory

2000-12-21 Thread Perrin Harkins
On Thu, 21 Dec 2000, Ken Williams wrote: So in a sense, I think you're both correct. If "concurrency" means the number of requests that can be handled at once, both systems are necessarily (and trivially) equivalent. This isn't a very useful measurement, though; a more useful one is how

Re: Uri modification at translation phase ...

2000-12-21 Thread Doug MacEachern
On Thu, 16 Nov 2000, Antonio Pascual wrote: Hi Everybody. I'm making a module that modifies the uri at the translation phase, but I have a doubt. The way I do it is modifying the uri and returning DECLINED as I read in the book "Writing Apache Modules with Perl And C". But working like

Re: Apache-server_root_relative not found?

2000-12-21 Thread Doug MacEachern
On Mon, 27 Nov 2000, The BOFH wrote: BEGIN { use Apache (); use lib Apache-server_root_relative('libperl'); ## /usr/local/apache/libperl created } ... perl -cw modperl_startup.pl returns: Can't locate object method "server_root_relative" via package "Apache" at

Re: 1.24 to 1.24_01 spinning httpds on startup (solved)

2000-12-21 Thread Doug MacEachern
On Tue, 28 Nov 2000, Michael J Schout wrote: About a month or 2 ago, I had posted a problem where I tried to upgrade from: ... And reported that after doing this, my httpds would spin on startup. When I turned on MOD_PERL_TRACE=all, it was showing that it was stuck in an infinite loop

Re: Upgraded to perl 5.6.0, ImageMagick now gives boot_libapreqerror

2000-12-21 Thread Doug MacEachern
On Mon, 11 Dec 2000, Chris Allen wrote: I have just done a complete install of RedHat v7.0 which includes Perl 5.6.0. Image Magick was running fine on my old system, but now when I attempt to install it, it gives the following error message when attempting to do the PerlMagick install:

Re: segmentation faults

2000-12-21 Thread Doug MacEachern
On Wed, 13 Dec 2000, Dr. Fredo Sartori wrote: Apache produces segmentation faults when receiving arbirary requests. I am running apache-1.3.14 with php-4.0.3pl1, mod_ssl-2.7.1 and mod_perl-1.24_02 (from the CVS tree) on solaris 2.7. The perl version installed is 5.6.0. According to

RE: help with custom Error documents/redirection

2000-12-21 Thread Doug MacEachern
On Wed, 13 Dec 2000, Geoffrey Young wrote: BTW, it's always good (at least I've found) to call my $prev_uri = $r-prev ? $r-prev-uri : $r-uri; or with one less method call :) my $prev_uri = ($r-prev || $r)-uri;

Re: slight mod_perl problem

2000-12-21 Thread Doug MacEachern
On Thu, 21 Dec 2000, Vivek Khera wrote: "SB" == Stas Bekman [EMAIL PROTECTED] writes: startup.pl does not get repeated on a restart. However it will when started with ./apachectl start. I have never encountered this with Apache 1.3.12 or 13. SB I've just tested it -- it's not. I

cvs commit: modperl-site/conferences/tpc5-us cfp.html

2000-12-21 Thread sbekman
sbekman 00/12/21 07:41:30 Added: conferences/tpc5-us cfp.html Log: * creating the conferences dirs infrastructure * first sketch of the mod_perl cfp (Do not announce it yet!) Revision ChangesPath 1.1 modperl-site/conferences/tpc5-us/cfp.html

cvs commit: modperl Changes INSTALL.win32 INSTALL.activeperl

2000-12-21 Thread dougm
dougm 00/12/21 11:19:12 Modified:.Changes INSTALL.win32 Removed: .INSTALL.activeperl Log: INSTALL.win32 updates, obsolete INSTALL.activeperl removed Revision ChangesPath 1.559 +3 -0 modperl/Changes Index: Changes

cvs commit: modperl-site/conferences/tpc5-us cfp.html

2000-12-21 Thread sbekman
sbekman 00/12/21 12:49:34 Modified:conferences/tpc5-us cfp.html Log: * removing images (leftovers from the original cfp) * correcting/extending some notes Revision ChangesPath 1.3 +76 -100 modperl-site/conferences/tpc5-us/cfp.html Index: cfp.html

cvs commit: modperl/Symbol Symbol.xs

2000-12-21 Thread dougm
dougm 00/12/21 22:02:32 Modified:.Changes Symbol Symbol.xs Log: rid PL_na usage in Symbol.xs Revision ChangesPath 1.561 +2 -0 modperl/Changes Index: Changes ===