Re: Odd difference between "restart" and "stop - start".

2007-06-08 Thread Jonathan Vanasco
Krist- NEVER do an apachectl restart under mod_perl . there's a known memory leak on that -- the master doesn't give up the memory. you always want to do a full stop then start. if you want to do neat stuff with switching up ports, take a look at nginx. one of the best features ive seen

RE: Loading Win32::OLE in a modperl package

2007-06-08 Thread Jan Dubois
On Fri, 08 Jun 2007, Foo JH wrote: > I wonder if I am alone in experiencing this. Simply put: putting 'use > Win32::OLE' in my modperl package will cause the Apache to fault. It > basically can't start at all. A window will pop up complaining about > 'Apache HTTP Server has encountered a problem an

APR::Request::Param subclassing

2007-06-08 Thread John ORourke
Hi, I know this isn't the apreq list but I don't suppose anyone has an example of subclassing APR::Request::Param? I'm trying this: package My::Handler; sub handler { ... my $query=Apache2::Request->new(); my $params=$query->param(); $params->param_class('My::Param::UTF8'); .

Re: Loading Win32::OLE in a modperl package

2007-06-08 Thread Foo JH
Hey Lionel, Will try, and let you guys know...but I am officially 18 minutes from hitting the weekends...:) Lionel MARTIN wrote: Hi again, Did you try finally try out with Apache 2.0? If this works with Apache 2.0, but not with Apache 2.2, then, it would perhaps be useful to point this out

Re: Loading Win32::OLE in a modperl package

2007-06-08 Thread Lionel MARTIN
Hi again, Did you try finally try out with Apache 2.0? If this works with Apache 2.0, but not with Apache 2.2, then, it would perhaps be useful to point this out. Lionel. - Original Message - From: "Foo JH" <[EMAIL PROTECTED]> To: "Lionel MARTIN" <[EMAIL PROTECTED]> Sent: Friday, J

Odd difference between "restart" and "stop - start".

2007-06-08 Thread Krist van Besien
Hello all, I use mod_perl's sections quite intensively so that I can have one config for all our webservers, and so that I can change some settings easily using variables. I recently noted however that sections are treated differently when doing a restart (httpd -k restart) than when doing a fu

Re: Loading Win32::OLE in a modperl package

2007-06-08 Thread Lionel MARTIN
Hi again, I tried our code, using as well this directive in my httpd.conf file: PerlResponseHandler MyPackage To make your handler work as the main Response Handler. Moreover I had to alter your code to make it work, adding a: use Apache2::RequestRec; because otherwise, the content_type meth

Re: Loading Win32::OLE in a modperl package

2007-06-08 Thread Foo JH
Thanks Lionel, I'm running Apache2.2 + Perl5.88. Try this piece of code: package MyPackage; use strict; use warnings; use Win32::OLE; sub handler { my $r = shift; $r->content_type('text/plain'); print 'hello'; return Apache2::Const::OK; } 1; Lionel MARTIN wrote: Basicall

Re: Loading Win32::OLE in a modperl package

2007-06-08 Thread Lionel MARTIN
Basically, Doing, in test.pl, run by ModPel::Registry, something like: use Win32::OLE; print 'Hello'; Works prefectly... Which versions (Apache, MP and Perl) are you running? - Original Message - From: "Foo JH" <[EMAIL PROTECTED]> To: "mod_perl" Sent: Friday, June 08, 2007 10:29 A

Loading Win32::OLE in a modperl package

2007-06-08 Thread Foo JH
Hi all, I wonder if I am alone in experiencing this. Simply put: putting 'use Win32::OLE' in my modperl package will cause the Apache to fault. It basically can't start at all. A window will pop up complaining about 'Apache HTTP Server has encountered a problem and needs to close'. No entry in