0 Schlabo's Scripts

- home -



Installation & Usage
 Q&A: Admin
 Q&A: DL
 Q&A: SP


 What's New?
 Terms of Use



< Back to the Overview...


 I can't run Auto-Config!

First read that, this answer deals with an error-message like that:

"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.pl in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at c:\webs\cgi-bin\schlabo\admin.pl line 73."

If your server shows you something like that then it doesn't look for the config-files in the current directory. Most of the times this happens on WinNT-servers. First change the $IIS-variable at the top of the admin.pl-script to 1 and try again. If it still doesn't work set it to 3 and try again. Still not working? Change the following line:

$require_path = "$ENV{'DOCUMENT_ROOT'}";

to the server-path to Schlabo's Scripts, example:

$require_path = "c:\webs\cgi-bin\schlabo";

No success yet? The last thing you can try is to add the full path to the require-statements. Example: Change

require "config.pl";


require "c:\webs\cgi-bin\schlabo\config.pl";

Search for require in the scripts and do that for every require-line you find.

After you got the scripts to work do the change you had to do to all of the scripts. So if you had to set $IIS to 1, change the variable in all .pl-files, find it at the top of them.