perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicholas Aaron Philbrook <>
Subject MP2 Problem including local file
Date Mon, 09 Jan 2006 19:51:16 GMT
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:

[Mon Jan 09 13:50:51 2006] [error] Can't locate in
@INC (@INC contains: /home/httpd/perl /etc/perl
/usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.6/i686-linux /usr/lib/perl5/5.8.6
/usr/local/lib/site_perl . /usr/lib/apache2) at
/var/www/localhost/htdocs/latest/ line 3.\n

It's funny because the current directory (.) is in the list of places
it looked, supposedly.

Also, interestingly the script will run fine from the command prompt
and duly chunk out the HTML that is supposed to show up on the web
page. The permissions are set appropriately, so that shouldn't be an

I am a perl newbie so please forgive me if I don't know what I'm
doing.  I did a fair amount of searching and couldn't find a problem
similary to this one.


View raw message