
david at kineticode
Dec 23, 2008, 3:26 PM
Post #2 of 3
(1330 views)
Permalink
|
On Dec 23, 2008, at 9:21 PM, rolfm [at] denison wrote: > In working on the Apache Auth stuff, I'm trying to get it to work > under mod_perl 1 and 2. Following David's advice, I added this code > to the module: > > use Bric::Config qw(:mod_perl); > BEGIN { if (MOD_PERL) { > if (MOD_PERL_VERSION < 2) { > use Apache::Constants qw(:common :http REDIRECT); > use Apache::Log; > } else { > use Apache2::Const qw(:common :http REDIRECT); > use Apache2::Log; > } > } > } > > But, I still get an error under apache 2: > > [Tue Dec 23 19:33:32 2008] [error] [client xxx.xxx.xxx.xxx] failed > to resolve handler `Bric::App::ApacheAuthzHandler': Can't locate > Apache/Constants.pm in @INC (@INC contains: /usr/local/bricolage/lib > > It shouldn't be looking for that stuff, provided I've done this > right. I'm sure it's something small that I'm missing. You should just be using Bric::Util::ApacheConst. Best, David
|