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

Hey Monks!

I installed XAMP on my XP system awhile ago.. I recently installed Strawberry Perl, which is the perl I'd prefer to use, and I've installed my modules in that library.

So, does anyone know how I can configure apache to use the Strawberry Perl interpreter instead of the one installed by XAMP? Nor would I know how to do that too..

Here's my perl.conf file. I see that its pointing to perl510.dll, but I'm not sure if I point it to the perl.dll in the Strawberry perl lib that it would work. I'm not sure if I need to point it to the perl.exe file in the Strawberry /bin dir or not.

LoadFile "C:/xampp/perl/bin/perl510.dll" LoadModule perl_module modules/mod_perl.so LoadModule apreq_module modules/mod_apreq2.so PerlSwitches -T PerlPostConfigRequire "C:/xampp/apache/conf/extra/startup.pl" <IfModule mime_module> AddType text/html .pl </IfModule> <FilesMatch "\.pl$"> SetHandler perl-script PerlResponseHandler ModPerl::Registry PerlOptions +ParseHeaders </FilesMatch> <Directory "C:/xampp/cgi-bin"> <FilesMatch "\.pl$"> SetHandler cgi-script </FilesMatch> </Directory> # ASP settings Include "conf/extra/asp.conf"

Replies are listed 'Best First'.
Re: Setting up mod_perl on Windows XP
by Anonymous Monk on Nov 19, 2010 at 15:29 UTC
    I believe mod_perl.so would need to be rebuilt if the two perl DLLs are sufficiently different in terms of version or binary compatibility (due to different compiler brand or options, etc.). In other words, simply loading the Strawberry DLL in place of the other one might not work. But what happens if you simply try?

    That said, do you have any XS (binary) modules installed in your Strawberry module tree, which won't work with the XAMP perl? If not (i.e. if all relevant modules are pure-Perl only), it might be easiest to simply adjust @INC so that the appropriate modules are found and loaded.

      Adjusting @INC probably would be the best thing to do. Then I don't have to muck with it.
Re: Setting up mod_perl on Windows XP
by rpnoble419 (Pilgrim) on Nov 20, 2010 at 03:08 UTC
    I simply replace the \Bin, \Lib, and \Site folders in the c:\xampp\perl folder with the sames folders from the strawberry build. I keep the strawberry build intact and use it to build my cpan modules and then I recopy the files as needed...
Re: Setting up mod_perl on Windows XP
by locked_user sundialsvc4 (Abbot) on Nov 19, 2010 at 14:32 UTC

    Curious... what is it about “Strawberry” Perl that makes the difference which you now seek?   Is this a matter of, say, referencing CPAN modules properly?   Or is there a key difference between the way that the two Perl executables are built?