Michael D Schleif wrote:
[...]
Yes, that is further down on that page, and I meant that I am working
with the whole Perl debugging section.  I thought -- erroneously? --
that I could PerlRequire the `use' and `init' stuff.  How can I do that?

Sure you can. it's better to keep it in httpd.conf so it's not hidden in the startup file.


The suggested config section should work just fine:

 <Perl>
     use Apache::DB ();
     Apache::DB->init;
 </Perl>
 <Location />
     PerlFixupHandler Apache::DB
 </Location>
 PerlModule Apache::Status
 <Location /perl-status>
     PerlHandler Apache::Status
     SetHandler perl-script
 </Location>

make sure that you do *not* preload Apache::Status before you init Apache::DB


I do not know why problems persist: `Undefined subroutine
&Apache::Status::handler called.'  Perhaps, a look at my httpd.conf
will help?

<http://helices.org/tmP/httpd.conf>

NOTE: That server is *not* the one in question ;>

what about startup.pl in 'PerlRequire startup.pl'? Make sure you don't load it from startup.pl as well.


I want to setup Apache::DB in such a way that it is easily turned OFF,
since most of the time I do not want it interfering.

You already did that as the docs suggest:


<IfDefine PERLDB>
    <Perl>
        use Apache::DB ();
        Apache::DB->init;
    </Perl>
    <Location />
        PerlFixupHandler Apache::DB
    </Location>
</IfDefine>

Only when you start the server with httpd -DPERLDB (and -X) it'll work.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


-- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html



Reply via email to