allyc has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks,

I am having problems with setting up Mod Perl with Apache 2 on my Windows XP machine. Apache 2 (2.0.45) installed using the standard Apache Binaries, and Perl is 5.8.0 (Activestate Build 805).

I have downloaded and installed the mod_perl.ppm from http://theoryx5.uwinnipeg.ca/ppms/mod_perl.ppm and managed to get Apache 2 running without any errors.

However when I come to execute a Perl script using Mod Perl, i get a 500 internal server error, and the message "Failed to resolve Handler Apache::Registry - Can't locate Apache/Registry.pm in C:/Perl5.8/lib C:/Perl5.8/site/lib at (Eval 1) line 3.0".

The file Registry.pm is installed in C:\Perl5.8\site\lib\ModPerl and not in the apache directory.

My httpd.conf file looks like ...

<Location /perl> SetHandler perl-script PerlResponceHandler Apache::Registry # Also tried ModPerl::Registry PerlOptions +ParseHeaders Options +ExecCGI </Location>

Any one have any ideas what is wrong with this?

Thanks for your help

Alistair

Replies are listed 'Best First'.
Re: Mod Perl and Apache 2 Problems
by PodMaster (Abbot) on Jul 14, 2003 at 21:31 UTC
Re: Mod Perl and Apache 2 Problems
by CountZero (Bishop) on Jul 14, 2003 at 21:44 UTC

    Why not make it easy in yourself and use the pre-canned APACHE 2 + Perl 5.8 + mod_perl 1.99 + PHP 4.3 + MySQL 4 + ... you can find at Apachefriends?

    I tried it for Apache 1 and it worked very nice. The only thing I changed was installing ActiveState Perl 5.6 afterwards in its own directory, so I got the PPM-interface working which came with the Komodo-IDE (it refuses to work with anything else but a genuine ActiveState Perl).

    CountZero

    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Re: Mod Perl and Apache 2 Problems
by Anonymous Monk on Jul 14, 2003 at 21:24 UTC
    PerlModule Apache::Registry anywhere?
Re: Mod Perl and Apache 2 Problems
by duct_tape (Hermit) on Jul 15, 2003 at 18:58 UTC
    Hello,

    This might be way off, but if you don't have a startup file try using the example one listed here. I think you may need to load the Apache2 module and ModPerl::Registry... maybe some of the others, but I'm not positive. I'm not a mod_perl expert, but I did manage to get it working on my server a few months ago.

    http://perl.apache.org/docs/2.0/user/config/config.html#Startup_File

    Also, as PodMaster mentioned mod_perl2 doesnt use Apache::Registry. It uses ModPerl::Registry.

    Hope that helps...

    Brad