Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What does this error message mean?

Status
Not open for further replies.

kartlegend

Technical User
Feb 3, 2003
1
NL
Hi,
I tried to install a basic news-publishing cgi-script at a windows NT server. But when running the script (located at I get this error message:

-----------------
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:

Can't locate config.cgi in @INC (@INC contains: E:/Perl/lib E:/Perl/site/lib .) at e:\websites\mydomainname.com\cgi-bin\news.cgi line 34.
------------------

The file config.cgi is located in the same directory as the news.cgi file (the cgi-bin directory). At my previous webhost, the cgi script allways worked fine.
Does anyone know what the problem is and how to fix it?
 
make sure the permissions are set so the web daemon can see/use the code. 'hope this helps

If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
 
You say "The file config.cgi is located in the same directory as the news.cgi file (the cgi-bin directory)." but the error message specifically says that it is looking for it in @INC: eg in either E:/Perl/lib or E:/Perl/site/lib

You could move it to one of those directories or you could modify the code of news.cgi to look elsewhere.

"As soon as we started programming, we found to our surprise that it wasn't as
easy to get programs right as we had thought. Debugging had to be discovered.
I can remember the exact instant when I realized that a large part of my life
from then on was going to be spent in finding mistakes in my own programs."
--Maurice Wilk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top