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
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 modperl@perl.apache.org
Sent: Friday,
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:
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
Hello all,
I use mod_perl's perl 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 perl
sections are treated differently when doing a restart (httpd -k
restart) than when
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, June 08,
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
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');
...
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
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 and
10 matches
Mail list logo