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:[email protected]]
Sent: 01 June 2009 09:08
To: Mahesh Khambadkone
Cc: [email protected]
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
<[email protected]> 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
> <Location /hello>
> SetHandler modperl
> PerlResponseHandler Apache2::Hello
> </Location>
>
> 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
> <Directory /var/www/mkperl>
> SetHandler perl-script
> PerlHandler ModPerl::Registry
> Options +ExecCGI
> Order allow,deny
> Allow from all
> </Directory>
>
> 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#Registry_scripts
lead to the same error?
--
best regards,
Randy