Author |
|
ramirezh
Joined: 18 Sep 2008 Posts: 4
|
Posted: Thu 18 Sep '08 1:18 Post subject: Apache 2.2.9 w/ mod_perl 2.0.4 service does not start |
|
|
Hello ApacheLounge,
I've searched high and low and decided this is the place to post my question.
This is my environment:
Microsoft Windows Server 2003 R2 Enterprise x64 Edition Service Pack 1
Perl 5.8.8
mod_perl 2.0.4
Apache 2.2.9 (apache_2.2.9-win32-x86-openssl-0.9.8h-r2.msi)
Steps:
1. I've wiped out my Apache 2.2.4 dir before installing Apache 2.2.9
2. I uninstalled mod_perl 2.0.3 through PPM
3. I installed mod_perl 2.0.4 through "ppm install http://theoryx5.uwinnipeg.ca/ppms/mod_perl.ppd'"
4. I added the Loadfile and LoadModule directives to httpd.conf
5. httpd.conf also has several entries such as:
<VirtualHost *:80>
ServerName snaf.foocom
PerlModule Foo::Bar
<Location /rd>
SetHandler perl-script
PerlHandler Foo::Bar
PerlOptions -ParseHeaders
</Location>
6. start the Apache Service
Result:
1. The service doesn't start
2. the Apache error log has the following:
[Wed Sep 17 15:56:51 2008] [error] Can't load 'D:/Perl/site/lib/auto/Apache2/Response/Response.dll' for module Apache2::Response: load_file:The specified procedure could not be found at D:/Perl/site/lib/XSLoader.pm line 64.\n
at D:/Perl/site/lib/Apache2/XSLoader.pm line 31\n
Compilation failed in require at D:/Perl/lib/CGI.pm line 188.\n
Compilation failed in require at D:/Perl/lib/CGI/Cookie.pm line 19.\n
BEGIN failed--compilation aborted at D:/Perl/lib/CGI/Cookie.pm line 19.\n
Compilation failed in require at D:/Perl/site/lib/Foo/Bar.pm line 7.\n
BEGIN failed--compilation aborted at D:/Perl/site/lib/Foo/Bar.pm line 7.\n
Compilation failed in require at (eval 3) line 3.\n
3. When I check the syntax via "perl -c BAR.pm" from command line a Window pop-up of "perl.exe - Unable to Locate Component" is displayed and the body of the message mentions libaprutil-1.dll was not found. However, now it can't find another module:
Can't load 'D:/Perl/site/lib/auto/APR/APR.dll' for module APR: load_file:The spe
cified module could not be found at D:/Perl/lib/DynaLoader.pm line 230.
at D:/Perl/site/lib/APR/URI.pm line 23
Compilation failed in require at D:/Perl/site/lib/APR/URI.pm line 23.
Has anyone come across this before?
Thanks,
Humboldt |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Sat 20 Sep '08 17:04 Post subject: |
|
|
Sometimes it is usefull to load the perl DLL before loading the module
e.g.
Code: |
LoadFile "C:/perl/bin/perl58.dll"
LoadModule perl_module modules/mod_perl.so
|
If you had intalled a different version of perl there can be some erros. See also http://www.apachelounge.com/viewtopic.php?t=2203 |
|
Back to top |
|
ramirezh
Joined: 18 Sep 2008 Posts: 4
|
Posted: Mon 22 Sep '08 17:55 Post subject: |
|
|
Thanks for the reply, James.
My httpd.conf file does have the directives in the order you suggest except that I installed Perl on my D drive. That shouldn't matter though and I've verified that my system PATH has the correct location of both Perl's and Apache's bin directory.
In response to installing different versions, are Perl 5.8.8, mod_perl 2.0.4, and Apache 2.2.9 incompatible?
Thanks again. |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Mon 22 Sep '08 18:09 Post subject: |
|
|
I'm using mod_perl 2.0.4 with Activeperl 5.8.822 and Apache 2.2.9, but on 32 bit OS .. I see you're on x64 .. shouldn;t matter I do not think.
I do know I've had problems when the mod_perl doesn't install right. |
|
Back to top |
|
ramirezh
Joined: 18 Sep 2008 Posts: 4
|
Posted: Mon 22 Sep '08 18:41 Post subject: |
|
|
My colleague suggested IndigoPerl (http://www.indigostar.com/indigoperl.htm) as a workaround. It installs Apache 2.2.8 but he overwrote it with Apache 2.2.9. This still doesn't resolve the issue I reported but hopefully it helps me accomplish my ultimate goal. I'll post my results soon. |
|
Back to top |
|
ramirezh
Joined: 18 Sep 2008 Posts: 4
|
Posted: Sat 27 Sep '08 2:48 Post subject: Resolution!!! |
|
|
Well it looks glsmith's approach works for my environment since upgrading to ActivePerl 5.8.8 build 822 was the answer. Thanks everybody!!!
Binaries used:
apache_2.2.9-win32-x86-openssl-0.9.8h-r2.msi
ActivePerl-5.8.8.822-MSWin32-x86-280952.msi |
|
Back to top |
|