How to use DB Connection Pool in mod_perl2 ?

2005-09-12 Thread firingme
I want to know is there any package can give me a DB Connection Pool in a mod_perl application ? I've checked Apache::DBI, but it seems that it'll initialze a new connection when a new thread born.

Re: [mp2] Directive changes the command nam

2005-09-12 Thread pradeep kumar
Hi Philppe,   I did try using mod_perl 2.0.1 and got the same "-e" in the ps output instead of "/PATH_TO_HTTPD -d /PATH_OF_APACHE -k start".   Thanks and Regards, Pradeep  On 9/9/05, Philippe M. Chiasson <[EMAIL PROTECTED]> wrote: pradeep kumar wrote:> Hi Philppe,>> I am using mp2. The version of

Re: $| doesn't work with mod_perl

2005-09-12 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 What version of mp are you using if you are running mp2 i think the apache-filter-system is the problem. Tom pradeep kumar wrote: > Hi, > > I have a perl script which uses $| to set autoflush on. Basically, it > flushes after every print. This scri

Re:[mp2] $| doesn't work with mod_perl

2005-09-12 Thread pradeep kumar
Hi Tom,   I am using mp2.   Thanks and Regards, Pradeep  On 9/12/05, Tom Schindl <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE-Hash: SHA1What version of mp are you using if you are running mp2 i think the apache-filter-system is the problem.Tompradeep kumar wrote:> Hi,>>  I have a pe

Re: [mp2] Directive changes the command nam

2005-09-12 Thread Philip M. Gollucci
pradeep kumar wrote: Hi Philppe, I did try using mod_perl 2.0.1 and got the same "-e" in the ps output instead of "/PATH_TO_HTTPD -d /PATH_OF_APACHE -k start". I'll confirm this in mp2 svn. Here's the relevenant section in modperl_cmd.c: { SV *code = newSVpv(arg, 0); GV

Re: mod_perl advocacy

2005-09-12 Thread Octavian Rasnita
From: "Tagore Smith" <[EMAIL PROTECTED]> > > Teddy, you've been subscribed to the beginners list for about as long as > I have. Back in the day, I used to help you out. I stopped when it > became clear that you weren't interested in learning. > > After 4 years you should not be a complete beginner

Libapreq-2.0.6 build issue

2005-09-12 Thread Sean Davis
I am trying to build libapreq2 on macos 10.3.9, apache2.0.54, mod_perl 2.0.1 (perl 5.8.1). I am doing the following and getting these results. libexpat is in /usr/local/apache2/lib. Any suggestions? Thanks, Sean % ./configure --with-apache2-apxs=/usr/local/apache2/bin/apxs --enable-perl-glue

Re: Libapreq-2.0.6 build issue

2005-09-12 Thread Philip M. Gollucci
Sean Davis wrote: % ./configure --with-apache2-apxs=/usr/local/apache2/bin/apxs --enable-perl-glue % make test % ./configure --with-apache2-apxs=/usr/local/apache2/bin/apxs \ --enable-perl-glue --with-expat=/usr/local/apache --with-expat takes the install base for libexpat.a an

Re: How to use DB Connection Pool in mod_perl2 ?

2005-09-12 Thread Malcolm J Harwood
On Monday 12 September 2005 02:27 am, firingme wrote: > I want to know is there any package can give me a DB Connection Pool > in a mod_perl application ? > I've checked Apache::DBI, but it seems that it'll initialze a > new connection when a new thread born. Do you mean thread or process? I'm n

Re: How to use DB Connection Pool in mod_perl2 ?

2005-09-12 Thread Philip M. Gollucci
Malcolm J Harwood wrote: On Monday 12 September 2005 02:27 am, firingme wrote: I want to know is there any package can give me a DB Connection Pool in a mod_perl application ? I think he's looking for DBI::Pool which subclasses DBI. This is incomplete. Last I heard Tim/Stas were working on i

Re: Wrong effective gid

2005-09-12 Thread Jason Rhinelander
To ask in a slightly different way: should this behaviour be considered a bug? Jason Rhinelander wrote: Oops, I forgot the URL's: http://jagerman.com/env.cgi http://jagerman.com/perl/env.cgi Jason Rhinelander wrote: Hi, I'm seeing some odd behaviour under mod_perl (specifically, ModPer

Re: [mp2] Directive changes the command nam

2005-09-12 Thread Philippe M. Chiasson
Philip M. Gollucci wrote: > pradeep kumar wrote: > >> Hi Philppe, >> >> I did try using mod_perl 2.0.1 and got the same "-e" in the ps output >> instead of >> "/PATH_TO_HTTPD -d /PATH_OF_APACHE -k start". > > I'll confirm this in mp2 svn. Still unable to reproduce this on my end. > Here's the

modperl_filter.c bug causing hung httpd child? (w/backtraces)

2005-09-12 Thread Jeff Ambrosino
I've observed recurring hung Apache children in my mod_perl http output filter. The problem is intermittent, and while I can't cause it to happen, our site gets alot of traffic and the problem is happening 10+ times per day. The immediate impact is that the page requested never gets served to the

Re: [mp2] Directive changes the command nam

2005-09-12 Thread Philip M. Gollucci
Philippe M. Chiasson wrote: Still unable to reproduce this on my end. FreeBSD i386 7.0-current perl 5.8.7 w/out ithreads httpd svn apr svn not threaded mod_perl svn perl Makefile.PL \ MP_APXS=/usr/home/pgollucci/dev/apps/httpd-2.3.0/prefork/bin/apxs \ MP_MAINTAINER=1 \ MP_DEBUG=1 \ MP_TRACE

Installing apache2/mod_perl2 on mac os x 10.3.9

2005-09-12 Thread Boysenberry Payne
Last time I tried to do a mod_perl 2 install on my OS X box was met with abysmal failure on my part. I ended up having to reinstall my whole box, what a nightmare. I've been lurking on this mailing list since then, and I've learned so much. Now, I find myself aching to get rolling with mod_p

Re: Installing apache2/mod_perl2 on mac os x 10.3.9

2005-09-12 Thread Philip M. Gollucci
Boysenberry Payne wrote: 1st Does anyone know of a step by step approach to getting apache2/mp2 installed on OS X 10.3.9 that's not going to ruin my current installs? From source: 1. install a perl preferably 5.8.7 and use the -Dprefix=$PREFIX/perland -Dusethreads=n with ./Configure' 2. instal

Re: Libapreq-2.0.6 build issue

2005-09-12 Thread Sean Davis
On 9/12/05 9:47 AM, "Philip M. Gollucci" <[EMAIL PROTECTED]> wrote: > Sean Davis wrote: >> % ./configure --with-apache2-apxs=/usr/local/apache2/bin/apxs >> --enable-perl-glue >> % make test > > % ./configure --with-apache2-apxs=/usr/local/apache2/bin/apxs \ > --enable-perl-glue > --with-expat=/us

Re: Installing apache2/mod_perl2 on mac os x 10.3.9

2005-09-12 Thread Boysenberry Payne
Yes I have OS X 10.3.9 "Panther" So for the $PREFIX I would use whatever directory I normally install into correct? Like $PREFIX = '/usr' Right? Thanks, Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Sep 12, 2005, at 1:47 PM, Philip M. Gollucci wrote: Boysenberry Payn

Re: Installing apache2/mod_perl2 on mac os x 10.3.9

2005-09-12 Thread Philip M. Gollucci
Boysenberry Payne wrote: Yes I have OS X 10.3.9 "Panther" So for the $PREFIX I would use whatever directory I normally install into correct? Like $PREFIX = '/usr' Right? You can yes. That would give you ... just make sure these paths don't conflict with anything -- I don't know where Darwin

Patch for ModPerl::Util to make Apache::Reload and Class::DBI cooperate

2005-09-12 Thread Ben Tilly
Currently in modperl 2 you cannot get Apache::Reload and Class::DBI to cooperate properly. The problem is that Apache::Reload wipes out the CODE slot by doing an undef, which leaves a non-working code reference. Therefore UNIVERSAL::can and *foo{CODE} will both say that there is a method/functio

test message, please ignore

2005-09-12 Thread Gokul P. Nair
test message, please ignore __ Yahoo! for Good Donate to the Hurricane Katrina relief effort. http://store.yahoo.com/redcross-donate3/

Why does my MP2 crash intermittently?

2005-09-12 Thread Foo Ji-Haw
Hello all,   I have set up my MP2 application, which in the course of development has been reasonably stable. But when I put it under reasonably load (I have a daemon with 5 threads that call it periodically, and I browse around the pages with 2 other collegues), sometimes I get this error (s

Re: Why does my MP2 crash intermittently?

2005-09-12 Thread Mike OK
Hi       Looks like you should have done a Google search.  The problem looks to be an operating system error.  Here is a quote from the Microsoft Knowledge base (http://support.microsoft.com/?kbid=262490) "This behavior occurs because the operating system does not allocate a large enough bu

Re: Why does my MP2 crash intermittently?

2005-09-12 Thread Foo Ji-Haw
Hello Mike,   You are right. I automatically assumed that this is a MP2 problem, when actually it is a Windows issue!   The strange thing is, that I'm already running on SP4 of Windows 2000. This problem should have been resolved by then. It is true that I do load lots of stuff via a db call.

Re: Custom deflation gzip filter [mp2] [SOLVED]

2005-09-12 Thread Alexander Charbonnet
In case anyone cares, I finally realized what the difference is between these two code snippets: context. In array context, flush() returns an array containing the output as well as the return code. In scalar context, flush() returns just the output. The print function, of course, asks for an

Re: [mp2] Directive changes the command nam

2005-09-12 Thread Philip M. Gollucci
Philippe M. Chiasson wrote: Philip M. Gollucci wrote: pradeep kumar wrote: save_scalar(gv); /* local $0 */ Mainly for my sanity and the archives: $PROGRAM_NAME $0 Contains the name of the program being executed. On some (read: not all) operating systems ass

Re: [mp2] Directive changes the command nam

2005-09-12 Thread Philip M. Gollucci
Philippe M. Chiasson wrote: Still unable to reproduce this on my end. This help any ? gdb httpd (wd: ~/dev/apps/httpd-2.3.0/prefork/bin) b modperl_cmd.c:559 [snip] bt full #0 modperl_cmd_perldo (parms=0xbfbfe9e0, mconfig=0x81056d0, arg=0x8133798 "package Apache2::ReadConfig::usr::home::p

Re: *nix distro compatibility (was Re: survey)

2005-09-12 Thread Jeff
Perrin Harkins wrote: I hear you, but I think anyone who is building a serious web app is better off compiling the important parts (apache, perl, mod_perl) themselves. The options that the packagers choose are intended to meet the needs of the largest cross-section of users, not to work well for