Gossamer Forum
Home : Products : DBMan : Installation :

cgi error

Quote Reply
cgi error
I'm getting this error:

CGI ERROR
==========================================
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: Can't locate ./home/sites/site188/web/cgi-bin/html.pl in @INC (@INC contains: . /usr/lib/perl5/mips-linux/5.00404 /usr/lib/perl5 /usr/lib/perl5/site_perl/mips-linux /usr/lib/perl5/site_perl .) at default.cfg line 51.

Script Location : /home/sites/site188/web/cgi-bin/db.cgi
Perl Version : 5.00404
Setup File : default.cfg
Session ID : defaut

I have the file there in the directory.

Thanks,

chris
Quote Reply
Re: cgi error In reply to
The problems are the following:

1) Your $db_script_path is not correctly set to the appropriate ABSOLUTE path, which should be:

Code:
/home/sites/site188/web/cgi-bin

Like the following:

Code:
$db_script_path ="/home/sites/site188/web/cgi-bin";

2) You are not using the proper codes for the require line in the default.cfg file.

BTW: This has been discussed MANY times in this forum...use the Forum's search engine, please.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------








Quote Reply
Re: cgi error In reply to
this is the path info for default.cfg

# File and URL's
# --------------------------------------------------------
# URL of the directory dbman resides in. No Trailing Slash Please.
$db_dir_url = "http://toddlersmall.com/cgi-bin";
# URL of dbman.
$db_script_url = $db_dir_url . "http://toddlersmall.com/cgi-bin/db.cgi";
# Full Path and File name of the database file.
$db_file_name = $db_script_path . "/home/sites/site188/web/cgi-bin/default.db";
# Full path and file name of the counter file.
$db_id_file_name = $db_script_path . "/home/sites/site188/web/cgi-bin/default.count";
# Full path and file name of the authorization directory.
$auth_dir = $db_script_path . "/home/sites/site188/web/cgi-bin/auth";
# Full path and file name of the password file.
$auth_pw_file = $db_script_path . "/home/sites/site188/web/cgi-bin/default.pass";
# Full path and file name of the log file.
$auth_log_file = $db_script_path . "/home/sites/site188/web/cgi-bin/default.log";
# Full path and file name of the html routines.
require $db_script_path . "/home/sites/site188/web/cgi-bin/html.pl";


I am still confused. Sorry for the inconvience.

chris
Quote Reply
Re: cgi error In reply to
Uh...the variable I am referring to is IN THE DB.CGI FILE!

Your html.pl required line should like the following:

Code:
require $db_script_path . "/html.pl";

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------