Author |
|
pnllan
Joined: 05 Dec 2005 Posts: 221
|
Posted: Mon 12 Dec '05 10:01 Post subject: Mod Perl |
|
|
I cannot get ModPerl 2.0.2 to work the Apache 22 build.
I keep recieving the following start error:
Quote: | The Apache service named reported the following error:
>>> httpd.exe: Syntax error on line 118 of D:/Apache22/conf/httpd.conf: Cannot load D:/Apache22/modules/mod_perl.so into server: The specified module could not be found. .
|
The file mod_perl.so is in the directory in question.
I had Mod Perl working in Apache 2.0.55.
Any ideas? |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3094 Location: Hilversum, NL, EU
|
Posted: Mon 12 Dec '05 12:55 Post subject: |
|
|
All modules need to be recompiled for 2.2.
This because the ModuleMagicNumber has changed.
I build mod_perl against 2.2 anad it is working fine.
I am not that perl guy, so I am still figuring out how I can distribute it as ppd.
Steffen |
|
Back to top |
|
Lutz-R. Frank
Joined: 03 Dec 2005 Posts: 21 Location: Germany
|
Posted: Tue 13 Dec '05 11:00 Post subject: |
|
|
I confirm proper building of mod_perl.so (even on my Setup ) without errors.
Code: | Server Version: Apache/2.2.0 (Win32) DAV/2 PHP/5.1.1 mod_ssl/2.2.0 OpenSSL/0.9.8a mod_perl/2.0.2 Perl/v5.8.7
Server Built: Dec 10 2005 09:07:53
|
The module loads and seems to be recognized, only the test script called by httpd.conf crashes my server, ie. adding the lines
Code: | # Edit file httpd.conf
PerlModule Apache2::Hello
<Location /hello>
SetHandler modperl
PerlResponseHandler Apache2::Hello
</Location>
# Create file C:\www\perl\site\lib\Apache2\Hello.pm
package Apache2::Hello;
use strict;
use Apache2::RequestRec (); # for $r->content_type
use Apache2::RequestIO (); # for $r->puts
use Apache2::Const -compile => ':common';
sub handler {
my $r = shift;
my $time = scalar localtime();
my $package = __PACKAGE__;
$r->content_type('text/html');
$r->puts(<<"END");
<HTML><BODY>
<H3>Hello</H3>
Hello from <B>$package</B>! The time is $time.
</BODY></HTML>
END
return Apache2::Const::OK;
}
1;
|
doesn't start my server - without the <Location> Directive, its fine
Lutz |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3094 Location: Hilversum, NL, EU
|
|
Back to top |
|
cody_rocco
Joined: 19 Dec 2005 Posts: 1
|
Posted: Sun 25 Dec '05 13:16 Post subject: |
|
|
Steffen wrote: | All modules need to be recompiled for 2.2.
This because the ModuleMagicNumber has changed.
I build mod_perl against 2.2 anad it is working fine.
I am not that perl guy, so I am still figuring out how I can distribute it as ppd.
Steffen |
maybe i can help in this problem, please contact me if you need |
|
Back to top |
|