in reply to mod_perl reloading handler on each call

Try this in your httpd.conf:
<Location /> Set-Handler perl-script PerlHandler +Some::Module </Location>
You could use Apache::Request to parse your query.
Boris

Replies are listed 'Best First'.
Re^2: mod_perl reloading handler on each call
by BigLug (Chaplain) on Jan 10, 2005 at 03:11 UTC
    Exactly the same .. the log keeps showing that it's been reloaded ..

    (On the other note, should I be using Apache::Request rather than CGI? Is that best practice in mp2?)


    Cheers!
    Rick
    If this is a root node: Before responding, please ensure your clue bit is set.
    If this is a reply: This is a discussion group, not a helpdesk ... If the discussion happens to answer a question you've asked, that's incidental.
      Are you really sure? Or did you just use Different fork's of apache?
      Try to start apache with -X an watch your logs again. You should see only one load count.
      Apache::Request is faster.
Re^2: mod_perl reloading handler on each call
by Errto (Vicar) on Jan 10, 2005 at 04:00 UTC
    Does Apache::Request exist for mod_perl2? I tried installing it via CPAN.pm on my box with mod_perl2 installed and I got the following:
    CPAN.pm: Going to build S/ST/STAS/libapreq-1.33.tar.gz mod_perl 1.x ( < 1.99) is required at Makefile.PL line 34.
    Is there another way to get it?
        Thanks for the tip, borisz. Unfortunately I'm not able to install it on my Fedora 2 box because I don't have a high enough version of mod_perl. There's an RPM available from http://www.rexursive.com/software/modspin/ but if I'm going to compile libapreq2 I also need the mod_perl-devel to go along with it.