Who is adding .. 'document has moved..'?

2003-12-19 Thread justin
Using Registry.. When using text/vnd.wap.wml $r->status(302) $r->content_type($encoding); $r->header_out('Location' => "..."); and adding, via print, my own empty document (a minimal wml card) apache+modperl persists in adding .. 302 Found Found The document has moved here. after the end

Re: [mp1] Bug + Patch: Improper signal handler restoration with sigaction()

2003-12-19 Thread Stas Bekman
Douglas K. Fischer wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I recently encountered problems with stuck Apache processes that upon analysis can be traced back to the signal handler saving/restoration code within mod_perl. This issue appears to have been originally reported by Charles

Re: using pnotes to store/retrieve Class::DBI objects?

2003-12-19 Thread Stas Bekman
Eric J. Hansen wrote: After looking at this further, it turns out that Perrin's suggested code *does* work, but only in the PerlResponseHandler or earlier stages. And unfortunately, I mis-stated the original problem... which is that I am trying to retrieve that pnotes object (Class::DBI instance)

Storing variables in memory

2003-12-19 Thread Chris Ochs
I have an application where known users connect, and normally I do a db query to get their configuration information. What I would like to do is preload all of this information into memory, say into a global hash where all the mod perl processes can access it. I could have each process load the

Re: VirtualHost + PerlSetVar

2003-12-19 Thread Stas Bekman
Paul G. Weiss wrote: [...] The reason this is important is that I'm trying to get Apache::PageKit to run in virtual hosts, and it depends on the availability of PerlSetVar variables on startup. First of all, why do you expect PerlSetVar to be available at the server startup? The config phase is

Re: Debugging mod_perl ???

2003-12-19 Thread Stas Bekman
Michael D Schleif wrote: Ref: Several places mention perldb command `w

Re: Prematch and postmatch regex vars and performance

2003-12-19 Thread Stas Bekman
[EMAIL PROTECTED] wrote: Hi all, I'm researching some performance problems with one of our Web sites and stumbled across some legacy code that's getting pulled into our system. This code uses $` and $' variables with regular expression matches. From the perlre docs (emphasis mine): WARNING: Once P

Re: Request object getting switched

2003-12-19 Thread Eric Sammer
Stas Bekman wrote: Yes, sorry, it's $r->prev(), was writing from memory... Got cha. Just wanted to make sure it wasn't something unexplained. Your handler doesn't redirect, but Apache does / -> /index.tt is a subrequest. Right. I was afraid that it was *supposed* to be accessible via $r->main()

Re: Request object getting switched

2003-12-19 Thread Stas Bekman
Eric Sammer wrote: Stas Bekman wrote: You have this problem when running a sub-request. In which case you need to do: my $pnote = $r->main ? $r->main->pnotes('foo') : $r->pnotes('foo'); http://perl.apache.org/docs/1.0/api/Apache.html#_r_E_gt_main http://perl.apache.org/docs/1.0/guide/snippets.h

Re: Request object getting switched

2003-12-19 Thread Eric Sammer
Stas Bekman wrote: You have this problem when running a sub-request. In which case you need to do: my $pnote = $r->main ? $r->main->pnotes('foo') : $r->pnotes('foo'); http://perl.apache.org/docs/1.0/api/Apache.html#_r_E_gt_main http://perl.apache.org/docs/1.0/guide/snippets.html#Passing_Notes_Be

Re: Request object getting switched

2003-12-19 Thread Stas Bekman
Eric Sammer wrote: All: Apache 1.3.28, MP 1.29, Perl 5.8.0 I'm having a problem with $r being different between request phases of the same request. Specifically, $r->pnotes() is missing a parameter that is packed into it by an earlier handler. Here's the setup: In virtual host context: PerlIn

RE: using pnotes to store/retrieve Class::DBI objects?

2003-12-19 Thread Eric J. Hansen
After looking at this further, it turns out that Perrin's suggested code *does* work, but only in the PerlResponseHandler or earlier stages. And unfortunately, I mis-stated the original problem... which is that I am trying to retrieve that pnotes object (Class::DBI instance) in _PerlCleanupHandle

Re: Apache::DB - Undefined subroutine ???

2003-12-19 Thread Stas Bekman
Michael D Schleif wrote: [...] Yes, that is further down on that page, and I meant that I am working with the whole Perl debugging section. I thought -- erroneously? -- that I could PerlRequire the `use' and `init' stuff. How can I do that? Sure you can. it's better to keep it in httpd.conf so it

Prematch and postmatch regex vars and performance

2003-12-19 Thread publiustemp-modperllist
Hi all, I'm researching some performance problems with one of our Web sites and stumbled across some legacy code that's getting pulled into our system. This code uses $` and $' variables with regular expression matches. >From the perlre docs (emphasis mine): WARNING: Once Perl sees that you need

Debugging mod_perl ???

2003-12-19 Thread Michael D Schleif
Ref: Several places mention perldb command `w' (window). Is that com

Re: [RELEASE CANDIDATE] please test mod_perl-1.99_12-dev.tar.gz

2003-12-19 Thread Stas Bekman
Steve Hay wrote: Stas Bekman wrote: A release candidate for mod_perl-1.99_12 is available: http://apache.org/~stas/mod_perl-1.99_12-dev.tar.gz Please test and report any failures to this list. WinXP / MSVC++ 6 / Perl 5.8.2 (ActivePerl Build 808) / Apache 2.0.48: Builds OK, and the top-level "

Re: VirtualHost + PerlSetVar

2003-12-19 Thread Paul G. Weiss
More interesting info... First of all, I've upgraded to mod_perl-1.99_11 with no change. Second, I've determined that the per-VirtualHost values are visible in the request, but not during server startup. Here's the situation in an (I hope) easy to reproduce format: -- config -- PerlRequire /v

Re: [RELEASE CANDIDATE] please test mod_perl-1.99_12-dev.tar.gz

2003-12-19 Thread Swen Schillig
Steve, Stas I experienced the same on Linux-Intel ( Apache 2.0.48, Perl 5.8.2) having a threaded MPM (worker). Everything works fine with MPM (prefork) on Linux-Intel and Linux-PPC. I assume Steve is running the Apache under the special NT MPM and not in prefork. So maybe there's something not r

VirtualHost + PerlSetVar

2003-12-19 Thread Paul G. Weiss
I have something like this: PerlModule Module PerlSetVar abc def Module->start; and in Module.pm use Apache::ServerUtil () ... sub startup { my $value = Apache->server->dir_config("abc"); ... } and lo and behold - $value is undef ! However, if I take the PerlSetVar and move it outside

Re: index.pl won't executed with mod_perl and apache

2003-12-19 Thread Ged Haywood
Hi there, On Thu, 18 Dec 2003, James.Q.L wrote: > i have a directory which execute mod_perl program. i want to requestion > site.com/printer/ and > index.pl get executed. however i got directory listing instead. requestiong index.pl > directly runs fine. > > both index.pl and /www/printer are

Re: [RELEASE CANDIDATE] please test mod_perl-1.99_12-dev.tar.gz

2003-12-19 Thread Steve Hay
Stas Bekman wrote: >A release candidate for mod_perl-1.99_12 is available: > >http://apache.org/~stas/mod_perl-1.99_12-dev.tar.gz > >Please test and report any failures to this list. > WinXP / MSVC++ 6 / Perl 5.8.2 (ActivePerl Build 808) / Apache 2.0.48: Builds OK, and the top-level "nmake test"

Re: [RELEASE CANDIDATE] please test Apache-Test-1.07-dev.tar.gz

2003-12-19 Thread Steve Hay
Stas Bekman wrote: >A release candidate for Apache-Test-1.07 is available: > >http://apache.org/~stas/Apache-Test-1.07-dev.tar.gz > >Please test and report any failures to this list. > Builds OK & All tests successful on WinXP / MSVC++ 6 / Perl 5.8.2 / Apache 1.3.29 / mod_perl 1.29. -

[RELEASE CANDIDATE] please test Apache-Test-1.07-dev.tar.gz

2003-12-19 Thread Stas Bekman
A release candidate for Apache-Test-1.07 is available: http://apache.org/~stas/Apache-Test-1.07-dev.tar.gz Please test and report any failures to this list. Changes since 1.06 allow conditional C module compilation on a more granular level. #define HTTPD_TEST_REQUIRE_APACHE 2.0.49 is now recogn

[RELEASE CANDIDATE] please test mod_perl-1.99_12-dev.tar.gz

2003-12-19 Thread Stas Bekman
A release candidate for mod_perl-1.99_12 is available: http://apache.org/~stas/mod_perl-1.99_12-dev.tar.gz Please test and report any failures to this list. If everything goes well, 1.99_12 will be released on Monday, so those who do mod_perl work can test on Friday and those at home over the w