Using mod_perl on Vista - get Error - Can"t load Perl module ModPerl::Registry

Using mod_perl on Vista - get Error - Can"t load Perl module ModPerl::Registry

am 30.05.2009 17:49:55 von Mahesh Khambadkone

This is a multi-part message in MIME format.

------=_NextPart_000_0008_01C9E16C.63AF9A20
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi,



I followed instructions at
http://perl.apache.org/docs/2.0/os/win32/install.html and
http://perl.apache.org/docs/2.0/rename.html to install mod_perl on my
configuration : Windows Vista, perl v5.10.0, ActivePerl 5.10.0 and Apache
2.3.



I can run sample a sample Hello.pm using the following in my httpd.conf :

PerlModule Apache2::Hello



SetHandler modperl

PerlResponseHandler Apache2::Hello







But, if I want to run old Perl CGI scripts by adding a block like the
following, Apache throws an error "Can't load Perl module ModPerl::Registry
for server XXX, so exiting ".



PerlModule ModPerl::Registry

PerlSendHeader On



SetHandler perl-script

PerlHandler ModPerl::Registry

Options +ExecCGI

Order allow,deny

Allow from all





What could be wrong?

Regards,
Mahesh Khambadkone
Co-founder and COO - games2win.com

42 Film Center, Tardeo, Mumbai 400034.
Cell : +91.98335.21313








------=_NextPart_000_0008_01C9E16C.63AF9A20
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">


charset=3Dus-ascii">









style=3D'font-size:
12.0pt'>Hi,



style=3D'font-size:
12.0pt'> 



style=3D'font-size:
12.0pt'>I followed instructions at href=3D"http://perl.apache.org/docs/2.0/os/win32/install.htm l">http://per=
l.apache.org/docs/2.0/os/win32/install.html
and href=3D"http://perl.apache.org/docs/2.0/rename.html">http:// perl.apache.o=
rg/docs/2.0/rename.html

to install mod_perl on my configuration : Windows Vista, perl v5.10.0, =
ActivePerl
5.10.0 and Apache 2.3.



style=3D'font-size:
12.0pt'> 



style=3D'font-size:
12.0pt'>I can run sample a sample Hello.pm using the following in my =
httpd.conf
:



style=3D'font-size:
12.0pt'>PerlModule Apache2::Hello



style=3D'font-size:
12.0pt'><Location /hello>



style=3D'font-size:
12.0pt'>           =
; SetHandler
modperl



style=3D'font-size:
12.0pt'>           =
; PerlResponseHandler
Apache2::Hello



style=3D'font-size:
12.0pt'></Location>



style=3D'font-size:
12.0pt'> 



style=3D'font-size:
12.0pt'> 



style=3D'font-size:
12.0pt'>But, if I want to run old Perl CGI scripts by adding a block =
like the
following, Apache throws an error “Can't load Perl module
ModPerl::Registry for server XXX, so exiting =
”.



style=3D'font-size:
12.0pt'> 



style=3D'font-size:
12.0pt'>PerlModule ModPerl::Registry



style=3D'font-size:
12.0pt'>PerlSendHeader On



style=3D'font-size:
12.0pt'><Directory /var/www/mkperl>



style=3D'font-size:
12.0pt'>     SetHandler =
perl-script



style=3D'font-size:
12.0pt'>    PerlHandler =
ModPerl::Registry



style=3D'font-size:
12.0pt'>    Options +ExecCGI



style=3D'font-size:
12.0pt'>    Order allow,deny



style=3D'font-size:
12.0pt'>    Allow from all



style=3D'font-size:
12.0pt'></Directory>



style=3D'font-size:
12.0pt'> 



style=3D'font-size:
12.0pt'>What could be wrong?



style=3D'font-size:12.0pt'>Regards,

Mahesh Khambadkone

Co-founder and COO - games2win.com



42 Film Center, Tardeo, Mumbai 400034.

Cell : +91.98335.21313



style=3D'font-size:12.0pt'> 



style=3D'font-size:12.0pt'> 



style=3D'font-size:
12.0pt'> 









------=_NextPart_000_0008_01C9E16C.63AF9A20--

Re: Using mod_perl on Vista - get Error - Can"t load Perl module

am 01.06.2009 05:38:18 von Randy Kobes

On Sat, May 30, 2009 at 10:49 AM, Mahesh Khambadkone
wrote:
> Hi,
>
> I followed instructions at
> http://perl.apache.org/docs/2.0/os/win32/install.html and
> http://perl.apache.org/docs/2.0/rename.html to install mod_perl on my
> configuration : Windows Vista, perl v5.10.0, ActivePerl 5.10.0 and Apache
> 2.3.
>
> I can run sample a sample Hello.pm using the following in my httpd.conf :
>
> PerlModule Apache2::Hello
>
>           =A0 SetHandler modperl
>           =A0 PerlResponseHandler Apache2::Hello
>

>
> But, if I want to run old Perl CGI scripts by adding a block like the
> following, Apache throws an error =93Can't load Perl module ModPerl::Regi=
stry
> for server XXX, so exiting =94.
>
> PerlModule ModPerl::Registry
> PerlSendHeader On
>
>   =A0 =A0SetHandler perl-script
>   =A0 PerlHandler ModPerl::Registry
>   =A0 Options +ExecCGI
>   =A0 Order allow,deny
>   =A0 Allow from all
>

>
> What could be wrong?

That's strange that the Apache2::Hello handler worked, but not the
registry script. Does the example at
http://perl.apache.org/docs/2.0/os/win32/config.html#Registr y_scripts
lead to the same error?

--=20
best regards,
Randy

RE: Using mod_perl on Vista - get Error - Can"t load Perl module ModPerl::Registry

am 01.06.2009 07:32:44 von Mahesh Khambadkone

The config sample you sent now allows my Apache to start-up, but I get =
an
error.

1) The config sample I was using was taken from the mod_perl
Developer's Cookbook - Recipe 2.2 Using Apache Registry. I guess a lot =
of
the other examples there will be buggy !

2) The new error I get is when the Perl script is actually run :

Can't load 'D:/Perl/site/lib/auto/Apache2/ServerUtil/ServerUtil.dll' for
module Apache2::ServerUtil: load_file:The specified procedure could not =
be
found at D:/Perl/lib/XSLoader.pm line 64.\n
at D:/Perl/site/lib/Apache2/XSLoader.pm line 31\n
Compilation failed in require at =
D:/Perl/site/lib/ModPerl/RegistryCooker.pm
line 30.\n
BEGIN failed--compilation aborted at
D:/Perl/site/lib/ModPerl/RegistryCooker.pm line 30.\n
Compilation failed in require at (eval 6) line 3.\n
...propagated at D:/Perl/lib/base.pm line 93.\n
BEGIN failed--compilation aborted at =
D:/Perl/site/lib/ModPerl/Registry.pm
line 26.\n
Compilation failed in require at (eval 5) line 3.\n


The ServerUtil.dll file does exist.

Is this a configuration issue to do with my version of Perl / ActivePerl =
and
Apache?

Regards,
Mahesh


-----Original Message-----
From: Randy Kobes [mailto:randy.kobes@gmail.com]=20
Sent: 01 June 2009 09:08
To: Mahesh Khambadkone
Cc: modperl@perl.apache.org
Subject: Re: Using mod_perl on Vista - get Error - Can't load Perl =
module
ModPerl::Registry

On Sat, May 30, 2009 at 10:49 AM, Mahesh Khambadkone
wrote:
> Hi,
>
> I followed instructions at
> http://perl.apache.org/docs/2.0/os/win32/install.html and
> http://perl.apache.org/docs/2.0/rename.html to install mod_perl on my
> configuration : Windows Vista, perl v5.10.0, ActivePerl 5.10.0 and =
Apache
> 2.3.
>
> I can run sample a sample Hello.pm using the following in my =
httpd.conf :
>
> PerlModule Apache2::Hello
>
>           =A0 SetHandler modperl
>           =A0 PerlResponseHandler Apache2::Hello
>

>
> But, if I want to run old Perl CGI scripts by adding a block like the
> following, Apache throws an error =93Can't load Perl module
ModPerl::Registry
> for server XXX, so exiting =94.
>
> PerlModule ModPerl::Registry
> PerlSendHeader On
>
>   =A0 =A0SetHandler perl-script
>   =A0 PerlHandler ModPerl::Registry
>   =A0 Options +ExecCGI
>   =A0 Order allow,deny
>   =A0 Allow from all
>

>
> What could be wrong?

That's strange that the Apache2::Hello handler worked, but not the
registry script. Does the example at
=
http://perl.apache.org/docs/2.0/os/win32/config.html#Registr y_scripts
lead to the same error?

--=20
best regards,
Randy

Re: Using mod_perl on Vista - get Error - Can"t load Perl module

am 01.06.2009 16:24:10 von Randy Kobes

On Mon, Jun 1, 2009 at 12:32 AM, Mahesh Khambadkone
wrote:
> The config sample you sent now allows my Apache to start-up, but I get an
> error.
>
> 1) =A0 =A0 =A0The config sample I was using was taken from the mod_perl
> Developer's Cookbook - Recipe 2.2 Using Apache Registry. I guess a lot of
> the other examples there will be buggy !

I don't think one can conclude they're buggy, as there's still
problems with your setup, as described below.

> 2) =A0 =A0 =A0The new error I get is when the Perl script is actually run=
:
>
> Can't load 'D:/Perl/site/lib/auto/Apache2/ServerUtil/ServerUtil.dll' for
> module Apache2::ServerUtil: load_file:The specified procedure could not b=
e
> found at D:/Perl/lib/XSLoader.pm line 64.\n
> at D:/Perl/site/lib/Apache2/XSLoader.pm line 31\n
> Compilation failed in require at D:/Perl/site/lib/ModPerl/RegistryCooker.=
pm
> line 30.\n
> BEGIN failed--compilation aborted at
> D:/Perl/site/lib/ModPerl/RegistryCooker.pm line 30.\n
> Compilation failed in require at (eval 6) line 3.\n
> =A0 =A0 =A0 =A0...propagated at D:/Perl/lib/base.pm line 93.\n
> BEGIN failed--compilation aborted at D:/Perl/site/lib/ModPerl/Registry.pm
> line 26.\n
> Compilation failed in require at (eval 5) line 3.\n
>
> The ServerUtil.dll file does exist.

There's a couple of things to check:

- if you're running Apache 2.2.x and perl-5.10, the relevant mod_perl
ppm package to install is
http://cpan.uwinnipeg.ca/PPMPackages/10xx/mod_perl.ppd
Was that installation successful, including installation of
mod_perl.so under your Apache modules subdirectory?

- Does having a directive in your httpd.conf to load the perl510.dll, like
LoadFile "/Path/to/your/Perl/bin/perl510.dll"
help? This should go before the
LoadModule perl_module modules/mod_perl.so
directive which loads mod_perl.so.

--=20
best regards,
Randy

RE: Using mod_perl on Vista - get Error - Can"t load Perl module ModPerl::Registry

am 01.06.2009 17:27:45 von Mahesh Khambadkone

Thanks for the revert.

I'm running Apache 2.2.x and perl-5.10.0, using binary build 1104 of
ActiveState.

1) Yes, the ppm package was taken from=20
http://cpan.uwinnipeg.ca/PPMPackages/10xx/mod_perl.ppd, as per
instructions at
http://perl.apache.org/docs/2.0/os/win32/install.html#PPM_Pa ckages, and =
I
specified that the mod_perl.so be installed at c:\mod_perl.

2) Yes, my .conf file includes a loadfile before the LoadModule :

LoadFile "D:/Perl/bin/perl510.dll"
LoadModule perl_module "C:/mod_perl/mod_perl.so"


I used c:\mod_perl as per http://perl.apache.org/docs/2.0/rename.html.

In anycase, I went ahead and uninstalled mod_perl, reinstalling directly
into c:\apache\modules, but I still get the same error.





-----Original Message-----
From: Randy Kobes [mailto:randy.kobes@gmail.com]=20
Sent: 01 June 2009 19:54
To: Mahesh Khambadkone
Cc: modperl@perl.apache.org
Subject: Re: Using mod_perl on Vista - get Error - Can't load Perl =
module
ModPerl::Registry

On Mon, Jun 1, 2009 at 12:32 AM, Mahesh Khambadkone
wrote:
> The config sample you sent now allows my Apache to start-up, but I get =
an
> error.
>
> 1) =A0 =A0 =A0The config sample I was using was taken from the =
mod_perl
> Developer's Cookbook - Recipe 2.2 Using Apache Registry. I guess a lot =
of
> the other examples there will be buggy !

I don't think one can conclude they're buggy, as there's still
problems with your setup, as described below.

> 2) =A0 =A0 =A0The new error I get is when the Perl script is actually =
run :
>
> Can't load 'D:/Perl/site/lib/auto/Apache2/ServerUtil/ServerUtil.dll' =
for
> module Apache2::ServerUtil: load_file:The specified procedure could =
not be
> found at D:/Perl/lib/XSLoader.pm line 64.\n
> at D:/Perl/site/lib/Apache2/XSLoader.pm line 31\n
> Compilation failed in require at
D:/Perl/site/lib/ModPerl/RegistryCooker.pm
> line 30.\n
> BEGIN failed--compilation aborted at
> D:/Perl/site/lib/ModPerl/RegistryCooker.pm line 30.\n
> Compilation failed in require at (eval 6) line 3.\n
> =A0 =A0 =A0 =A0...propagated at D:/Perl/lib/base.pm line 93.\n
> BEGIN failed--compilation aborted at =
D:/Perl/site/lib/ModPerl/Registry.pm
> line 26.\n
> Compilation failed in require at (eval 5) line 3.\n
>
> The ServerUtil.dll file does exist.

There's a couple of things to check:

- if you're running Apache 2.2.x and perl-5.10, the relevant mod_perl
ppm package to install is
http://cpan.uwinnipeg.ca/PPMPackages/10xx/mod_perl.ppd
Was that installation successful, including installation of
mod_perl.so under your Apache modules subdirectory?

- Does having a directive in your httpd.conf to load the perl510.dll, =
like
LoadFile "/Path/to/your/Perl/bin/perl510.dll"
help? This should go before the
LoadModule perl_module modules/mod_perl.so
directive which loads mod_perl.so.

--=20
best regards,
Randy

Re: Using mod_perl on Vista - get Error - Can"t load Perl moduleModPerl::Registry

am 01.06.2009 17:31:50 von Jean-Damien Durand

Mahesh Khambadkone a écrit :
> Thanks for the revert.
>
> I'm running Apache 2.2.x and perl-5.10.0, using binary build 1104 of
> ActiveState.
>
> 1) Yes, the ppm package was taken from
> http://cpan.uwinnipeg.ca/PPMPackages/10xx/mod_perl.ppd, as per
> instructions at
> http://perl.apache.org/docs/2.0/os/win32/install.html#PPM_Pa ckages, and I
> specified that the mod_perl.so be installed at c:\mod_perl.
>
> 2) Yes, my .conf file includes a loadfile before the LoadModule :
>
> LoadFile "D:/Perl/bin/perl510.dll"
> LoadModule perl_module "C:/mod_perl/mod_perl.so"
>
>
> I used c:\mod_perl as per http://perl.apache.org/docs/2.0/rename.html.
>
> In anycase, I went ahead and uninstalled mod_perl, reinstalling directly
> into c:\apache\modules, but I still get the same error.
>

Perhaps a hidden dependency to apreq ?
http://cpan.uwinnipeg.ca/PPMPackages/10xx/libapreq2.ppd .
Who knows. Cheers, JD.

RE: Using mod_perl on Vista - get Error - Can"t load Perl module ModPerl::Registry

am 01.06.2009 19:05:13 von Mahesh Khambadkone

Unfortuntely, that did not help either (libapreq2)

-----Original Message-----
From: Jean-Damien Durand [mailto:jeandamiendurand@free.fr]=20
Sent: 01 June 2009 21:02
To: Mahesh Khambadkone
Cc: 'Randy Kobes'; modperl@perl.apache.org
Subject: Re: Using mod_perl on Vista - get Error - Can't load Perl =
module
ModPerl::Registry

Mahesh Khambadkone a =E9crit :
> Thanks for the revert.
>
> I'm running Apache 2.2.x and perl-5.10.0, using binary build 1104 of
> ActiveState.
>
> 1) Yes, the ppm package was taken from=20
> http://cpan.uwinnipeg.ca/PPMPackages/10xx/mod_perl.ppd, as per
> instructions at
> http://perl.apache.org/docs/2.0/os/win32/install.html#PPM_Pa ckages, =
and I
> specified that the mod_perl.so be installed at c:\mod_perl.
>
> 2) Yes, my .conf file includes a loadfile before the LoadModule :
>
> LoadFile "D:/Perl/bin/perl510.dll"
> LoadModule perl_module "C:/mod_perl/mod_perl.so"
>
>
> I used c:\mod_perl as per http://perl.apache.org/docs/2.0/rename.html.
>
> In anycase, I went ahead and uninstalled mod_perl, reinstalling =
directly
> into c:\apache\modules, but I still get the same error.
> =20

Perhaps a hidden dependency to apreq ?=20
http://cpan.uwinnipeg.ca/PPMPackages/10xx/libapreq2.ppd .
Who knows. Cheers, JD.