Get 500 Internal server error while trying to start asp test script.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libapache-asp-perl (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
While trying to execute asp script 500 Internal error occured
From apache2 error log:
[Fri Sep 15 10:52:23 2006] [error] [client xxx.xxx.xxx.xxx] Can't locate object
method "get" via package "APR::Table" at /usr/share/
016.\n at /usr/share/
fig('APR:
SP.pm line 275\n\tApache:
0x7ee290)', '/var/www/
) called at /usr/share/
pache2:
at -e line 0\n, referer: http://
Probably this issue described in:
http://<email address hidden>
Installed packages:
Package: apache2
Version: 2.0.55-4ubuntu2
Package: apache2-common
Version: 2.0.55-4ubuntu2
Package: libapache-asp-perl
Version: 2.59-2
Package: libapache2-
Version: 2.0.2-2ubuntu1
Following patch resolve the problem:
--- /usr/share/
+++ /usr/share/
@@ -63,7 +63,10 @@
}
if(
- $ModPerl2 = ($mod_perl::VERSION >= 1.99);
+ my $ver = $mod_perl::VERSION;
+ if ($ver eq "") { $ver = $ENV{MOD_
+ $ModPerl2 = ($ver >= 1.99);
+# $ModPerl2 = ($mod_perl::VERSION >= 1.99);
eval "use Apache:
die($@) if $@;
Same problem. Here is my patch:
--- /usr/share/ perl5/Apache/ ASP.pm. ubuntu 2007-09-04 12:47:15.000000000 +0200 perl5/Apache/ ASP.pm 2007-09-04 12:59:21.000000000 +0200
+++ /usr/share/
@@ -62,12 +62,9 @@
eval "use $module ();";
}
- if($ENV{MOD_PERL}) { PERL_API_ VERSION' }) >= 1.99) { :ASP::ApacheCom mon ();";
- $ModPerl2 = ($mod_perl::VERSION >= 1.99);
- if($ModPerl2) {
+ if($ENV{'MOD_PERL'} && ($mod_perl::VERSION || $ENV{'MOD_
eval "use Apache:
die($@) if $@;
- }
}
}
Apache::ASP does not appear to be maintained anymore, so I would prefer to use Apache2::ASP instead.