RE: [mp2] apache/mod_perl starup failure using cvs 09

2003-03-05 Thread Beau E. Cox
-Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 9:23 PM To: Beau E. Cox Cc: Modperl Subject: Re: [mp2] apache/mod_perl starup failure using cvs 09 [...] why does Mason needs $r at the server startup? There is no request object

Re: [mp2] apache/mod_perl starup failure using cvs 09

2003-03-05 Thread Stas Bekman
Beau E. Cox wrote: Yea, Stas, I clearly see your reasoning. However, this is not a change of behaviour between mp1 and mp2, but rather between mp2-08 and the current cvs (09). since 09 08, it *is* a change in behaviour between mp1 and mp2 ;) though potentially not the final one. I will

Re: Apache::DBI on mp2

2003-03-05 Thread Ask Bjoern Hansen
On Wed, 5 Mar 2003, Stas Bekman wrote: Great. I've already committed that patch. Perhaps Ask could load 'Apache::compat' inside Apache::DBI if mp2 is used. Or to use the mp2 API if mp2 is used. That seems like it'll be an easy solution. I thought loading Apache::compat would have global

Re: Apache::DBI on mp2

2003-03-05 Thread Stas Bekman
Ask Bjoern Hansen wrote: On Wed, 5 Mar 2003, Stas Bekman wrote: Great. I've already committed that patch. Perhaps Ask could load 'Apache::compat' inside Apache::DBI if mp2 is used. Or to use the mp2 API if mp2 is used. That seems like it'll be an easy solution. I thought loading

RE: [mp2] apache/mod_perl starup failure using cvs 09

2003-03-05 Thread Beau E. Cox
Hi Stas - -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 10:45 PM To: Beau E. Cox Cc: Modperl Subject: Re: [mp2] apache/mod_perl starup failure using cvs 09 Beau E. Cox wrote: Yea, Stas, I clearly see your reasoning. However, this

Reading an array from perl script

2003-03-05 Thread Devi .M
Hello All, I have a perl script that would be running infinitely and updating an array by processing some data. Now I would like to read the array values that should not disturb this perl script. I thought to use the concept of shared variable and write a method in perl module

[mp2] CGI redirects incorrectly handled?

2003-03-05 Thread Mark James
I'm having CGI redirect problems mp2 (cvs). Instead of being redirected to the proper web page, I'm sometimes getting a 302 Moved page containing a link to the correct URL. Seems to be related to the following code in modperl_cgi.c: if (location (location[0] == '/') (r-status == 200)) {

Re: mp2 runs scripts as root?

2003-03-05 Thread Mark James
Stas Bekman wrote: ... Well, actually this is not the case. It behaves exactly the same as in modperl 1.0. You can use Env::C module (available from CPAN) to easily debug this: ... In any case you probably want to rely on getpwuid($), rather than $ENV{USER} if applicable. Unfortunately ci

Re: Reading an array from perl script

2003-03-05 Thread Mark James
Devi .M wrote: Hello All, I have a perl script that would be running infinitely and updating an array by processing some data. Now I would like to read the array values that should not disturb this perl script. I thought to use the concept of shared variable and write a method in perl module

Re: mod_perl Cookbook example

2003-03-05 Thread Geoffrey Young
ASHISH MUKHERJEE wrote: Hello! I was trying Recipe 11.3 from the mod_perl Cookbook (Cookbook::Timer). Does this measure real download speed or does it merely measure server processing time? well, it measures the time that it takes Apache to complete the response. this is dependent on a

Re: internal_redirect and returns

2003-03-05 Thread Geoffrey Young
[snip] I use this subroutine: sub let_through { my ($self, $r, $p) = @_; $r-set_handlers( PerlAuthzHandler = [\OK] ); $r-set_handlers( PerlAuthenHandler = [\OK] ); $p $r-internal_redirect( $p ); return OK; } And under some circumstances might call:

Re: [ANNOUNCE] Apache Hello World Benchmarks v1.02

2003-03-05 Thread Josh Chamas
Ask Bjoern Hansen wrote: On Tue, 4 Mar 2003, Josh Chamas wrote: I thought it was interesting that Embperl 2 (barely) beat out PHP 4.3.0 on XSLT in both the XSLT Hello XSLT Big tests. Why is that interesting? A bit more background would be interesting. :-) (post it to the list maybe). My

Bug: system()-Call: CmdLine more than 128 Chars

2003-03-05 Thread Mark Plomer
Hi, My Config: - Windows 98 SE (+ all WinUpdate-Patches) - Apache 2.0.44 (+ apr-Patch) - ActivePerl 5.8.0 (ActivePerl-5.8.0.804-MSWin32-x86.msi) - mod_perl 1.99_09-dev (ppm install http://theoryx5.uwinnipeg.ca/ppms/mod_perl.ppd;) I have the following Problem: When I call system() from a

Re: [mp2] CGI redirects incorrectly handled?

2003-03-05 Thread Nick Tonkin
How are you telling the server to redirect? You do know it's different from mp1, right? In mp2 you need to do: my $location = 'http://foo.bar.baz'; $r-headers_out-{'Location'} = $location; # Or use $r-err_headers_out-{'Location'} which you will have # to do with any other headers you want to

Re: Tracing double accesshandler invocation

2003-03-05 Thread Nick Tonkin
On Wed, 5 Mar 2003, Richard Clarke wrote: Hi, I'm trying to figure out why my accesshandler is getting triggered twice for each request that I make. I'm 100% sure that I'm doing no explicit lookups/redirects anywhere in my code. The particular uri I am fetching should only invocate an

register_cleanup on mod_perl 2.0

2003-03-05 Thread Denis Banovic
Hi! I've a script that looks like this: if ($runnung_on_mod_perl) { Apache-request-register_cleanup(\init_globals); } Under mod_perl 1.0 works fine with Apache::Registry. Can someone give me an Example how to make a register_cleanup with mod_perl 2? Thanks a lot Denis

Re: Tracing double accesshandler invocation

2003-03-05 Thread Nick Tonkin
On Wed, 5 Mar 2003, Richard Clarke wrote: Hi, I'm trying to figure out why my accesshandler is getting triggered twice for each request that I make. I'm 100% sure that I'm doing no explicit lookups/redirects anywhere in my code. The particular uri I am fetching should only invocate an

Serving two pages consecutively

2003-03-05 Thread Jim Morrison [Mailing-Lists]
Hi, Anyone got a good/simple way of serving two pages consecutively with the minimum of load/hassle etc? Preferably just serving two pages from the same process. The reason being that I need to go off and get quite a bit of date from various places and I wanted to feed it back into the page

RE: Serving two pages consecutively

2003-03-05 Thread FFabrizio
IIRC, we just had a thread on this a week or two back. We discussed a couple of solutions Randal had turned into columns in addition to some other suggestions. Maybe peek through the archives? The thread title I believe was 'Please wait Handler' but talked about ways to serve the data

RE: Trouble with sysread in modperl

2003-03-05 Thread Liu, Hui (GXS)
Title: RE: Trouble with sysread in modperl Stas, Yes we tried reading STDIN and it works: while ($readData = STDIN) { $buffer .= $readData; $bufferLength = length($buffer); .. } But it's not working with sysread or read, here are the results for read, the last line is what we

RE: Serving two pages consecutively

2003-03-05 Thread Jim Morrison [Mailing-Lists]
Cheers Fran, Found it all... I'll have a play... - Jimbo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 05 March 2003 16:29 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Serving two pages consecutively IIRC, we just had a thread on this a

Can anyone Rcommend a good Apache mailing list

2003-03-05 Thread Martin Moss
All, I'm having issues with conflicts between using Port and Listen directives for access via LAN and ssh tunnel (or proxy). Can anyone recommend a mailing list I can post my problem to? Kind Regards Marty From les Rosbeufs to les Grenuoilles, Standing up to a bully bigger than you is bravery

Wanted: Experience with EmbPerl on Win2000/Apache HTTPD?

2003-03-05 Thread Richard Heintze
Since I had such a tough time installing mod_perl on Win2000, I thought I would solicit for experiences getting Hello, World running with EmbPerl on Apache HTTPD on Windows2000. What URL did you download embperl from? Did you get any errors during installation? What is the URL you used for

Re: [mp2] CGI redirects incorrectly handled?

2003-03-05 Thread Nick Tonkin
On Thu, 6 Mar 2003, Mark James wrote: Nick Tonkin wrote: Now that I think about it, maybe you're using CGI.pm to do your redirect? If so, maybe the code in CGI.pm has not been correctly updated? Yes Nick, I'm using CGI.pm version 2.91 (the latest). Its redirect code sends a Status: 302

Re: SetConsoleMode failed, LastError=|6| at C:/Perl/site/lib/Term/ReadKey.pmline 268, STDIN line 6.

2003-03-05 Thread Randy Kobes
On Tue, 4 Mar 2003, Richard Heintze wrote: I just downloaded the all-in-one and, as per Randy's instructions, abandoned my current installations of Apache2 and perl5.8 by uninstalling them. I just typed in the perl configure.pl command and I receive: SetConsoleMode failed, LastError=|6|

Re: Reading an array from perl script

2003-03-05 Thread Stas Bekman
Devi .M wrote: Hello All, I have a perl script that would be running infinitely and updating an array by processing some data. Now I would like to read the array values that should not disturb this perl script. I thought to use the concept of shared variable and write a method in perl module

Re: [mp2] CGI redirects incorrectly handled?

2003-03-05 Thread Stas Bekman
Mark James wrote: I'm having CGI redirect problems mp2 (cvs). Instead of being redirected to the proper web page, I'm sometimes getting a 302 Moved page containing a link to the correct URL. Seems to be related to the following code in modperl_cgi.c: if (location (location[0] == '/') (r-status

Re: Reading an array from perl script

2003-03-05 Thread Perrin Harkins
Stas Bekman wrote: As suggested by Mark, IPC::Shareable might work if the data set is small. If it's big you can use a simple dbm to store the data in and with proper locking read/write to/from it without disturbing each other. Yes, and the MLDBM::Sync module would handle that for you behind the

Re: Can anyone Rcommend a good Apache mailing list

2003-03-05 Thread Stas Bekman
Martin Moss wrote: All, I'm having issues with conflicts between using Port and Listen directives for access via LAN and ssh tunnel (or proxy). Can anyone recommend a mailing list I can post my problem to? http://httpd.apache.org/lists.html#http-users

Re: register_cleanup on mod_perl 2.0

2003-03-05 Thread Stas Bekman
Denis Banovic wrote: Hi! I've a script that looks like this: if ($runnung_on_mod_perl) { Apache-request-register_cleanup(\init_globals); } Under mod_perl 1.0 works fine with Apache::Registry. Can someone give me an Example how to make a register_cleanup with mod_perl 2? A copy-n-paste

Transparent front-end proxying for many VirtualHosts

2003-03-05 Thread Andrew Ho
Hello, I've looked through the mod_rewrite and Guide documentation and can't seem find an answer for this, but feel free to point me at TFM to R if I just missed it. I have an Apache with many VirtualHosts, and I want to setup proxying so that a lightweight frontend Apache with

Re: Tracing double accesshandler invocation

2003-03-05 Thread Stas Bekman
Nick Tonkin wrote: On Wed, 5 Mar 2003, Richard Clarke wrote: Hi, I'm trying to figure out why my accesshandler is getting triggered twice for each request that I make. I'm 100% sure that I'm doing no explicit lookups/redirects anywhere in my code. The particular uri I am fetching should only

Re: register_cleanup on mod_perl 2.0

2003-03-05 Thread Stas Bekman
Stas Bekman wrote: Denis Banovic wrote: Hi! I've a script that looks like this: if ($runnung_on_mod_perl) { Apache-request-register_cleanup(\init_globals); } Under mod_perl 1.0 works fine with Apache::Registry. Can someone give me an Example how to make a register_cleanup with mod_perl 2?

Re: Apache::DBI on mp2

2003-03-05 Thread Perrin Harkins
Stas Bekman wrote: FWIW, we are discussing the internal DBI pooling mechanism at the dbi-dev list and having already a sort-of-working prototype. So hopefully there will be no need for Apache::DBI in the near future, as DBI will be able to handle pooling internally. However it may take some

Re: Apache::DBI on mp2

2003-03-05 Thread Stas Bekman
Perrin Harkins wrote: Stas Bekman wrote: FWIW, we are discussing the internal DBI pooling mechanism at the dbi-dev list and having already a sort-of-working prototype. So hopefully there will be no need for Apache::DBI in the near future, as DBI will be able to handle pooling internally.

Re: Transparent front-end proxying for many VirtualHosts

2003-03-05 Thread Larry Leszczynski
Hi Andrew - I want to simplify my configuration in two ways. I'd prefer not to maintain two sets of VirtualHost configuration data, and I'd like it if the block that proxies .pl files to the backend proxy not be replicated per VirtualHost. Have you looked at mod_macro? Depending on how

Re: [mp2] CGI redirects incorrectly handled?

2003-03-05 Thread Mark James
Stas Bekman wrote: Mark James wrote: I'm having CGI redirect problems mp2 (cvs). as the comment just above this line says, that code was copy-n-pasted from mod_cgi. Can you reproduce the same problem while running a cgi script? No, them problem only manifests under mod_perl (2, haven't used 1).

Re: [mp2] CGI redirects incorrectly handled?

2003-03-05 Thread Stas Bekman
Mark James wrote: Stas Bekman wrote: Mark James wrote: I'm having CGI redirect problems mp2 (cvs). as the comment just above this line says, that code was copy-n-pasted from mod_cgi. Can you reproduce the same problem while running a cgi script? No, them problem only manifests under

Re: Transparent front-end proxying for many VirtualHosts

2003-03-05 Thread Charlie Garrison
Good afternoon, On 5/3/03 at 3:30 PM, Andrew Ho [EMAIL PROTECTED] wrote: I have an Apache with many VirtualHosts, and I want to setup proxying so that a lightweight frontend Apache with mod_rewrite/mod_proxy proxies Apache::Registry script requests back to a heavyweight backend Apache running on

Re: [mp2] CGI redirects incorrectly handled?

2003-03-05 Thread Mark James
Mark James wrote: 303 See Other is the correct post-POST redirect response: http://rfc.net/rfc2616.html#s10.3.4 which your first link suggests works in all browsers. Well, taking a closer look, 303 doesn't work in Netscape 3 or 4. CGI.pm always returns a 302, though, if necessary, I can

Env::C threads env flashback

2003-03-05 Thread Stas Bekman
When I've suggested to use Env::C::getenv to debug the problem with env vars, and Mark decided to use Env::C::setenv to solve it, I've forgotten to warn you that you shouldn't be using this workaround in the threaded env. If you could, modperl would have been doing the right thing in first

Re: Transparent front-end proxying for many VirtualHosts

2003-03-05 Thread Perrin Harkins
On Wed, 2003-03-05 at 18:30, Andrew Ho wrote: I want to simplify my configuration in two ways. I'd prefer not to maintain two sets of VirtualHost configuration data, and I'd like it if the block that proxies .pl files to the backend proxy not be replicated per VirtualHost. As others pointed

ImageMagick

2003-03-05 Thread Lee Goddard
-BEGIN PGP SIGNED MESSAGE- Hash: MD5 A while ago someone on this list experienced a similar problem to myself, with ImageMagick crashing an Apache mod_perl server. If it was you, and if that problem related to Writing an image, please get in touch off list: I've been given a potential