RE: [ILUG] ScriptAlias for a vhost

From: adam beecher (adam at domain iewebs.com)
Date: Fri 05 May 2000 - 20:00:04 IST


<yadda yadda yadda>

> OK. Well basically the problem originates from myself.
> A simple perl script that just outputs text works. But basically
> I have a line at the top require "cgi-lib.pl"
> It should be looking for that in the current directory and it's not. I've
> tried using absolute paths to it.
> Error in logs/error_log is
>
> Can't locate cgi-lib.pl in at domain INC ( at domain INC contains:
> /usr/libdata/perl/5.00503/mach
> /usr/libdata/perl/5.00503
> /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
> /usr/local/lib/perl5/site_perl/5.005 .) at
> /home/committe/phil/public_html/cgi-bin/outings.pl line 2.
>
> The last place that looks is the current directory which is the current
> cgi-bin directory, so I don't see the problem.
> Any ideas?
>

Well basically? Why does that remind me of Monty Python?

Anyway, it didn't look in your local directory in fact - the last line is
pointing to the line in the file that caused the error. I know you can
change where Perl looks for required files, but I can't remember at the
moment. I'll have a look in a minute, but for now have a go off:

require "./cgi-lib.pl";

That oughta do it temporarily anyway.

adam



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:02 GMT