LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] ScriptAlias for a vhost

[ILUG] ScriptAlias for a vhost

adam beecher adam at iewebs.com
Fri May 5 20:00:04 IST 2000


<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 @INC (@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





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell