I'm trying to use Apache::Monitor with mod_perl2, but
it fails to load it. I changed some code because it
didn't detected it was running inside mod_perl2 ,but
I'm unable to fix it more.

This is the error, it's the same from make test and
when I try to run in inside httpd.conf

ap_scoreboard_image doesn't exist at
/usr/local/web20/perl/lib/site_perl/5.8.7/Apache/VMonitor.pm line 42

this is:

use constant SERVER_LIMIT => MP2
    ? Apache::Scoreboard->image(APR::Pool->new)->server_limit
    : Apache::Constants::HARD_SERVER_LIMIT;

any hints ?


These are the versions of some modules. I installed apache,
perl and mod_perl from sources.

    httpd-2.0.55
    perl-5.8.7

    APR::Pool         0.009000
    Apache-Scoreboard 2.08
    libapreq2         2.06-dev
    mod_perl          2.0.2


This is the code I changed in VMonitor.pm so it detects mp2:

14c14
<     use constant MP2 => eval { require mod_perl; $mod_perl::VERSION >
1.99 };
---
>     use constant MP2 => eval { require mod_perl2; $mod_perl2::VERSION
> 1.99 };
21a22
>               require APR::Pool;

Reply via email to