Re: DirectoryIndex ignored when using perl-handler

2005-05-20 Thread Geoffrey Young
Thomas Hilbig wrote: > I really apologize for resurrecting a thread that was > put to rest almost a month ago. I am just running > into this problem now, and I don't quite understand > what the fix is. I'm very new to writing a MP > handler. since you're new to mod_perl it's probably not obvio

Re: DirectoryIndex ignored when using perl-handler

2005-05-20 Thread Thomas Hilbig
I really apologize for resurrecting a thread that was put to rest almost a month ago. I am just running into this problem now, and I don't quite understand what the fix is. I'm very new to writing a MP handler. I am trying to write a (yet another) authentication handler for a directory that is t

Re: [mp2] Dynamically pushing output filters -- Questions

2005-05-20 Thread Stas Bekman
Chris Jacobson wrote: Stas Bekman wrote: Chris Jacobson wrote: Hello, I am attempting to write a system which allows output filters to be dynamicaly pushed on the output filter stack at the end of a PerlResponseHandler. That doesn't make any sense, Chris. By the end of the PerlRes

Re: [mp2] Dynamically pushing output filters -- Questions

2005-05-20 Thread Stas Bekman
Chris Jacobson wrote: Hello, I am attempting to write a system which allows output filters to be dynamicaly pushed on the output filter stack at the end of a PerlResponseHandler. That doesn't make any sense, Chris. By the end of the PerlResponseHandler the response is gone and there is

[mp2] Dynamically pushing output filters -- Questions

2005-05-20 Thread Chris Jacobson
Hello, I am attempting to write a system which allows output filters to be dynamicaly pushed on the output filter stack at the end of a PerlResponseHandler. These output filters are generated from a master factory object. my $FilterType = "Foo"; my $FilterObject = My::FilterFactory->n

Re: [mp2] Problem with custom config in Location

2005-05-20 Thread Stas Bekman
Herve Guillemet wrote: Stas Bekman wrote: Herve, you've uncovered a bloody global perl context switch bug. Please try this patch (the reproducing tar ball now works for me under worker) This test does run successfully with your patch. Now define two directives. Use one inside the Location, anoth

newbie question already searched the faqs and archives

2005-05-20 Thread Donald Lee
Hello, I am looking for some help getting started with mod_perl. I am at a stopping point where I am at a loss... my setup is as follows: windows xp pro w/sp2 apache 2.0.54 active perl, v5.8.6 built for MSWin32-x86-multi-thread I am already consulting: http://perl.apache.org/docs/2.0/os/win32/confi

Re: [mp2] Problem with custom config in Location

2005-05-20 Thread Herve Guillemet
Stas Bekman wrote: Herve, you've uncovered a bloody global perl context switch bug. Please try this patch (the reproducing tar ball now works for me under worker) This test does run successfully with your patch. Now define two directives. Use one inside the Location, another outside, and core dump

Re: Is mod_perl installed

2005-05-20 Thread Philip M. Golllucci
cfaust-dougot wrote: Hey Stas, I know this has been asked a ton of time and I have read everything on the site to check if MP is installed - my problem now is I have a client who has told me over and over again that mod_perl is installed - every method documented on the site says it is not (st

Re: Error: handles can't be shared between threads

2005-05-20 Thread Perrin Harkins
On Friday 20 May 2005 4:27 pm, Octavian Rasnita wrote: > In all the modules I have put something like: > > package Site::Module1; > > use strict; > use Site::MySQL (); #The module that connects to MySQL > my $dbh = Site::MySQL::dbh(); You are creating a closure when you use that $dbh in your subs.

Re: Error: handles can't be shared between threads

2005-05-20 Thread Octavian Rasnita
Hi, From: "Perrin Harkins" <[EMAIL PROTECTED]> > > I have put the following lines in a startup.pl file which is included for > > all virtualhosts (but I have a single virtual host): > > > > use Apache::DBI (); > > Apache::DBI->connect_on_init('DBI:mysql:database=test', 'root', undef, > > {PrintErr

ANNOUNCE: Krang 1.1025

2005-05-20 Thread Aaron Dancygier
We're very pleased to announce that Krang v1.1025 is now available. Notable changes in this release: * Added ability for categories to be created or removed via the FTP interface. Added new group permission, ``Manage categories via FTP'' which defaults to OFF. Turn this on to permit yo

Re: [mp2] Problem with custom config in Location

2005-05-20 Thread Stas Bekman
Herve Guillemet wrote: New report: [...] #22 0x08066b3d in worker_thread (thd=0x8231f18, dummy=0x0) at worker.c:835 #23 0x4010f2f1 in dummy_worker (opaque=0x0) at thread.c:105 #24 0x4019a54e in pthread_start_thread () from /lib/libpthread.so.0 #25 0x402a3b8a in clone () from /lib/libc.so.6 Thanks f

Re: [MP2] Installation instructions

2005-05-20 Thread Stas Bekman
Nick Wellnhofer wrote: The MP2 installation instructions say: (http://perl.apache.org/docs/2.0/user/install/install.html#MP_USE_STATIC) MP_USE_STATIC Build static mod_perl (mod_perl.a). This is the default. It'll be turned off if MP_USE_DSO=1 is used. I think the last two sentences are wron

Re: [mp2] Problem with custom config in Location

2005-05-20 Thread Herve Guillemet
New report: --- 1. Problem Description: A custom apache config directive defined in a together with a PerlResponseHandler makes the request handling crash (apache dumps core, see below). Nothing printed in the error_log nor the access_log. httpd.conf contains: PerlLoadModule

[MP2] Installation instructions

2005-05-20 Thread Nick Wellnhofer
The MP2 installation instructions say: (http://perl.apache.org/docs/2.0/user/install/install.html#MP_USE_STATIC) MP_USE_STATIC Build static mod_perl (mod_perl.a). This is the default. It'll be turned off if MP_USE_DSO=1 is used. I think the last two sentences are wrong. I still had to suppl

Re: [mp2] Problem with custom config in Location

2005-05-20 Thread Stas Bekman
Herve Guillemet wrote: On Thu, 19 May 2005, Stas Bekman wrote: Herve Guillemet wrote: 1. Problem Description: A custom apache config directive defined in a together with a PerlResponseHandler makes the request handling crash. Herve, have you considered to check the error_log before reporting a

Re: Apache2::Cookie - can't find cookie_clas.al

2005-05-20 Thread Andrew Wyllie
Joe Schaefer wrote: Andrew Wyllie <[EMAIL PROTECTED]> writes: my $jar = Apache2::Cookie::Jar->new( $r, VALUE_CLASS => "Alta::Cookies::Cookie" ); Oops, looks like I b0rked that API in 2.05. Here's the preferred aproach now: my $req = APR::Request::Apache2->handle($r); my $jar = $req-

RE: Is mod_perl installed

2005-05-20 Thread cfaust-dougot
Title: Re: Is mod_perl installed Thanks Perrin, that makes more sense. Although I agree the RPM is ancient, I've been telling them that the real problem is they installed from RPM and now think nothing could possibly be wrong as the RPM installed without an error :)..   -Chris     From

[ANNOUNCE] mod_perl 2.0.0

2005-05-20 Thread Philippe M. Chiasson
The URL http://people.apache.org/~gozer/mp2/mod_perl-2.0.0.tar.gz has entered CPAN as file: $CPAN/authors/id/G/GO/GOZER/mod_perl-2.0.0.tar.gz size: 1440319 bytes md5: 99325d82e2c42361123f6a242e57a593 The package is also available from: http://apache.org/dist/perl/mod_perl-2.0.0

[ANNOUNCE] Apache-Test 1.24

2005-05-20 Thread Philippe M. Chiasson
The URL http://people.apache.org/~gozer/mp2/Apache-Test-1.24.tar.gz has entered CPAN as file: $CPAN/authors/id/G/GO/GOZER/Apache-Test-1.24.tar.gz size: 145235 bytes md5: 92a748318fdbe989cbe8522e5f376468 Changes since 1.23: When adding TypesConfig directives (either inherited from th

Re: [mp2] Problem with custom config in Location

2005-05-20 Thread Herve Guillemet
On Thu, 19 May 2005, Stas Bekman wrote: Herve Guillemet wrote: 1. Problem Description: A custom apache config directive defined in a together with a PerlResponseHandler makes the request handling crash. Herve, have you considered to check the error_log before reporting a problem? Your code is im