I have Dbman working fine under Apache /Unix but have today attempted to test it locally under NT and get this error which I have seen posted throughout the message board but haven't come across a posted solution yet.
__________________________________________________________
CGI ERROR
==========================================
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: Can't locate default.cfg in @INC (@INC contains: . D:/Perl/lib D:/Perl/site/lib .) at C:\Inetpub\scripts\posters\db.cgi line 55.
Script Location : C:\Inetpub\scripts\posters\db.cgi
Perl Version : 5.006
Setup File : default.cfg
Form Variables
-------------------------------------------
Environment Variables
-------------------------------------------
ALLUSERSPROFILE : C:\Documents and Settings\All Users
COMMONPROGRAMFILES : C:\Program Files\Common Files
COMPUTERNAME : SERVER
COMSPEC : C:\WINNT\system32\cmd.exe
CONTENT_LENGTH : 0
GATEWAY_INTERFACE : CGI/1.1
HTTPS : off
HTTP_ACCEPT : */*
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-gb
HTTP_CONNECTION : Keep-Alive
HTTP_COOKIE : ASPSESSIONIDQGQGGCMK=PKKJPJEDJNLDJODMLFHLLDGL
HTTP_HOST : 212.135.186.117
HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
INSTANCE_ID : 1
LOCAL_ADDR : 212.135.186.117
NUMBER_OF_PROCESSORS: 1
OS : Windows_NT
OS2LIBPATH : C:\WINNT\system32\os2\dll;
PATH : D:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem
PATHEXT : .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PATH_INFO : /scripts/posters/db.cgi
PATH_TRANSLATED : C:\Inetpub\scripts\posters\db.cgi
PROCESSOR_ARCHITECTURE: x86
PROCESSOR_IDENTIFIER: x86 Family 6 Model 8 Stepping 6, GenuineIntel
PROCESSOR_LEVEL : 6
PROCESSOR_REVISION : 0806
PROGRAMFILES : C:\Program Files
REMOTE_ADDR : 212.135.186.117
REMOTE_HOST : 212.135.186.117
REQUEST_METHOD : GET
SCRIPT_NAME : /scripts/posters/db.cgi
SERVER_NAME : 212.135.186.117
SERVER_PORT : 80
SERVER_PORT_SECURE : 0
SERVER_PROTOCOL : HTTP/1.1
SERVER_SOFTWARE : Microsoft-IIS/5.0
SYSTEMDRIVE : C:
SYSTEMROOT : C:\WINNT
TEMP : C:\WINNT\TEMP
TMP : C:\WINNT\TEMP
USERPROFILE : C:\Documents and Settings\NetShowServices
WINDIR : C:\WINNT
I have set the permissions as per the NT FAQ and made nearly all paths absolute, these are the main lines from the default.cfg and the db.cgi :-
db.cgi
-------------------------------------------------------
#!/usr/bin/perl
#
$db_script_path = ".";
use CGI;
$query = new CGI;
default.cfg
-----------------------------------------------------------
# URL of the directory dbman resides in. No Trailing Slash Please.
$db_dir_url = "http://212.135.186.117/scripts/posters";
# URL of dbman.
$db_script_url = $db_dir_url . "http://212.135.186.117/scripts/posters/db.cgi";
# Full Path and File name of the database file.
$db_file_name = $db_script_path . "http://212.135.186.117/scripts/posters/default.db";
# Full path and file name of the counter file.
$db_id_file_name = $db_script_path . "http://212.135.186.117/scripts/posters/default.count";
# Full path and file name of the authorization directory.
$auth_dir = $db_script_path . "http://212.135.186.117/scripts/posters/auth";
# Full path and file name of the password file.
$auth_pw_file = $db_script_path . "http://212.135.186.117/scripts/posters/default.pass";
# Full path and file name of the log file.
$auth_log_file = $db_script_path . "http://212.135.186.117/scripts/posters/default.log";
# Full path and file name of the html routines.
require $db_script_path . "http://212.135.186.117/scripts/posters/html.pl";
I have associated .cgi extentions with IIS5 and run some simple cgi/pl scripts which all work well.... can anyone see what I'm doing wrong?????
__________________________________________________________
CGI ERROR
==========================================
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: Can't locate default.cfg in @INC (@INC contains: . D:/Perl/lib D:/Perl/site/lib .) at C:\Inetpub\scripts\posters\db.cgi line 55.
Script Location : C:\Inetpub\scripts\posters\db.cgi
Perl Version : 5.006
Setup File : default.cfg
Form Variables
-------------------------------------------
Environment Variables
-------------------------------------------
ALLUSERSPROFILE : C:\Documents and Settings\All Users
COMMONPROGRAMFILES : C:\Program Files\Common Files
COMPUTERNAME : SERVER
COMSPEC : C:\WINNT\system32\cmd.exe
CONTENT_LENGTH : 0
GATEWAY_INTERFACE : CGI/1.1
HTTPS : off
HTTP_ACCEPT : */*
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-gb
HTTP_CONNECTION : Keep-Alive
HTTP_COOKIE : ASPSESSIONIDQGQGGCMK=PKKJPJEDJNLDJODMLFHLLDGL
HTTP_HOST : 212.135.186.117
HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
INSTANCE_ID : 1
LOCAL_ADDR : 212.135.186.117
NUMBER_OF_PROCESSORS: 1
OS : Windows_NT
OS2LIBPATH : C:\WINNT\system32\os2\dll;
PATH : D:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem
PATHEXT : .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PATH_INFO : /scripts/posters/db.cgi
PATH_TRANSLATED : C:\Inetpub\scripts\posters\db.cgi
PROCESSOR_ARCHITECTURE: x86
PROCESSOR_IDENTIFIER: x86 Family 6 Model 8 Stepping 6, GenuineIntel
PROCESSOR_LEVEL : 6
PROCESSOR_REVISION : 0806
PROGRAMFILES : C:\Program Files
REMOTE_ADDR : 212.135.186.117
REMOTE_HOST : 212.135.186.117
REQUEST_METHOD : GET
SCRIPT_NAME : /scripts/posters/db.cgi
SERVER_NAME : 212.135.186.117
SERVER_PORT : 80
SERVER_PORT_SECURE : 0
SERVER_PROTOCOL : HTTP/1.1
SERVER_SOFTWARE : Microsoft-IIS/5.0
SYSTEMDRIVE : C:
SYSTEMROOT : C:\WINNT
TEMP : C:\WINNT\TEMP
TMP : C:\WINNT\TEMP
USERPROFILE : C:\Documents and Settings\NetShowServices
WINDIR : C:\WINNT
I have set the permissions as per the NT FAQ and made nearly all paths absolute, these are the main lines from the default.cfg and the db.cgi :-
db.cgi
-------------------------------------------------------
#!/usr/bin/perl
#
$db_script_path = ".";
use CGI;
$query = new CGI;
default.cfg
-----------------------------------------------------------
# URL of the directory dbman resides in. No Trailing Slash Please.
$db_dir_url = "http://212.135.186.117/scripts/posters";
# URL of dbman.
$db_script_url = $db_dir_url . "http://212.135.186.117/scripts/posters/db.cgi";
# Full Path and File name of the database file.
$db_file_name = $db_script_path . "http://212.135.186.117/scripts/posters/default.db";
# Full path and file name of the counter file.
$db_id_file_name = $db_script_path . "http://212.135.186.117/scripts/posters/default.count";
# Full path and file name of the authorization directory.
$auth_dir = $db_script_path . "http://212.135.186.117/scripts/posters/auth";
# Full path and file name of the password file.
$auth_pw_file = $db_script_path . "http://212.135.186.117/scripts/posters/default.pass";
# Full path and file name of the log file.
$auth_log_file = $db_script_path . "http://212.135.186.117/scripts/posters/default.log";
# Full path and file name of the html routines.
require $db_script_path . "http://212.135.186.117/scripts/posters/html.pl";
I have associated .cgi extentions with IIS5 and run some simple cgi/pl scripts which all work well.... can anyone see what I'm doing wrong?????