| markus.rietzler@rzf.fin-nrw.de 2007-08-28, 8:24 am |
| hi group,
i have the following problem: two servers, identically setup - at
least i used the same files and when comparing everything (almost all)
looks identical. both are configured with apche 2.0.x, mod_perl2.
on both servers a mod_perl modul is configured in httpd.conf. but when
running on the new server i've installed i get
Can't locate object method "dir_config" via package
"Apache2::RequestRec" at /opt/perl5/lib/site_perl/5.8.7/foo/
redirect.pm line 21.
this is the beginning of the modul:
package foo::redirect;
use Apache2::Const qw(:common HTTP_MOVED_TEMPORARILY);
use Apache2::Log ();
use Apache2::URI ();
use Apache2::Connection();
use Apache2::Request;
use Apache2::SubRequest();
use Digest::MD5;
use MIME::Base64;
use strict;
use constant DEFAULT_URI => 'foo.bar';
sub handler {
my $r = shift;
my $debug = $r->dir_config('EBKLoginDebug') || 0;
....
}
strange: sometimes it seems to work, at least in one httpd-process,
when i hit refresh many times i sometimes get a correct answer and
mostly the error message. now segfaults in error log etc.
i know that dir_config is from Apache2::RequestUtil, i thought this
would have been loaded with Apache::Request. When i now add "use
Apache2::RequestUtil" or "use ARP::Table" in my coding the script is
working again.
so, do really i have to use the additinal "use Apache2::RequestUtil"?
can RequestUtil be loaded through some other modul? strange thing is,
that we have several webservers with this configuration (some older
version of supporting scritps, but apache/mod_perl is quite the same)
and there everything is working.
i don't know where to look further, can't see big differences. any
hints, thanxs
markus
|