You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Mark Stosberg <ma...@summersault.com> on 2006/02/17 16:49:27 UTC
tip: solving " Apache::Reload: Can't locate " with CGI::Application
In the past I've gotten log warnings like this:
Apache::Reload: Can't locate ../../config/Config.pl
Even though I had an absolute path to ../../config in the httpd.conf file.
I thought I'd share what worked in case it is of use to someone else.
Before:
package MyPackage;
use lib ('../../perllib');
use MyPackage;
my $app = MyPackage->new(
PARAMS => {
config_files => ['../../config/Config.pl'],
}
);
After, using the helpful FindBin!
package MyPackage;
use FindBin qw/$Bin/;
use lib ("$Bin/../../perllib");
use MyPackage;
my $app = MyPackage->new(
PARAMS => {
config_files => ["$Bin/../../config/Config.pl"],
}
);
#######
Now the log warnings are gone.
Mark
--
--
. . . . . . . . . . . . . . . . . . . . . . . . . . .
Mark Stosberg Principal Developer
mark@summersault.com Summersault, LLC
765-939-9301 ext 202 database driven websites
. . . . . http://www.summersault.com/ . . . . . . . .