"be consistent" | |
PerlMonks |
Problem running CGI::Application under modperl2by scorpio17 (Canon) |
on Mar 26, 2007 at 21:18 UTC ( [id://606666]=perlquestion: print w/replies, xml ) | Need Help?? |
scorpio17 has asked for the wisdom of the Perl Monks concerning the following question: Dear Monks, I have a CGI::Application based webapp that runs fine as a normal cgi-bin script, but I'm trying to evolve it into a mod_perl handler for performance reasons.
I'm using the following environment: What follows is the smallest example I can write to reproduce the problem: In my apache config file, I have the following:
So, as shown above, I can access the URL http://myhost.com/small and I see the message "This is page 1." If I uncomment the line indicated by Note#1, everything still works. However, if I uncomment the line indicated by Note#2, I get the following error in the apache log file:
Error executing class callback in prerun stage: At this point, I thought the problem was with using CGI.pm behind the scenes in CGI::Session (which is used by the Authentication plugin) so I tried using the CGI::Application::Plugin::Apache module, which is supposed to allow easy migration to mod_perl. But after uncommenting the line in Note#3, I get this error:
Usage: Apache2::RequestUtil::request(classname, svr=Nullsv) This error remains even if I go back and comment out the lines indicated by Note#1 and Note#2. I've searched online (including the archives here) and so far have been unable to figure out where I'm going wrong. Any help will be greatly appreciated! Thanks! UPDATE: As it turns out, I did not have the latest version of every module from CPAN. I had installed the latest CGI.pm under my home directory, but an older version installed previously was ahead of it in @INC, so I wasn't using the version that I thought I was. Now that I've corrected that, problems #1 and #2 have gone away. And #3 is a known problem (thanks mpeters!).
Back to
Seekers of Perl Wisdom
|
|