perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tyler MacDonald <>
Subject Re: MP2 Problem including local file
Date Mon, 09 Jan 2006 20:02:55 GMT
Nicholas Aaron Philbrook <> 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 ""
> where 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 "" into your
DocumentRoot instead.

	You could do something like;

use Apache2::RequestUtil ();
require $r->document_root . "/";


View raw message