Nicholas Aaron Philbrook <[EMAIL PROTECTED]> wrote: > I recently put together a Gentoo server with apache and mod_perl. I'm > trying to run a perl script that has a require statement for a local > file, i.e. > > require "database_util.pl" > > where database_util.pl is another perl file in the same directory. > These scripts were running fine on another guy's server, but now I get > a 500 Internal Server Error when I try to access them via web, and the > apache error log says this:
When apache is running "." is the directory of your ServerRoot... i'm not sure, but it looks like you are putting "database_util.pl" into your DocumentRoot instead. You could do something like; use Apache2::RequestUtil (); require $r->document_root . "/database_util.pl"; Cheers, Tyler