Gossamer Forum
Home : Products : DBMan : Installation :

CGI Error

Quote Reply
CGI Error
I've seen similar posts here, but found no solution posted. Line 4 Gives me the reason-libraries not found, with an error in line 51 of the .cfg file.
Problem is, the path displayed in this message is NOT the path in the .cfg file!!

I've checked to see if all files uploaded as ASCII and reloaded all of them. Tried changing the path to relative and full. Seems like I get this same error no matter what. Error message follows:

CGI ERROR==========================================
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: Can't locate /usr/local/etc/http/cgi-bin/DBM.usr/localetc/httpd/cgi-bin/DBM/html.pl in @INC (@INC contains: /usr/local/etc/http/cgi-bin/DBM. /usr/local/lib/perl5/i386-bsdos/5.00404 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/i386-bsdos /usr/local/lib/perl5/site_perl .) at default.cfg line 51.
Script Location : /usr/local/etc/httpd/cgi-bin/DBM/db.cgi
Perl Version : 5.00404Setup File : default.cfgForm Variables
-------------------------------------------db : default
login : Logonpw : adminuid :
userid : adminEnvironment Variables
-------------------------------------------CONTENT_LENGTH : 49
CONTENT_TYPE : application/x-www-form-urlencoded
DOCUMENT_ROOT : /usr/local/etc/httpd/htdocs/techcon
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, */*
HTTP_ACCEPT_LANGUAGE: en-usHTTP_CONNECTION : Keep-Alive
HTTP_HOST : www.technologyconsultants.com
HTTP_REFERER : http://www.technologyconsultants.com/DBM/
HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 4.01; Windows 98)
PATH : /sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/usr/contrib/bin:/usr/X11/bin
QUERY_STRING : REMOTE_ADDR : 207.155.128.69
REMOTE_HOST : 207.155.128.69REMOTE_PORT : 1158
REQUEST_METHOD : POSTREQUEST_URI : /cgi-bin/DBM/db.cgi
SCRIPT_FILENAME : /usr/local/etc/httpd/cgi-bin/DBM/db.cgi
SCRIPT_NAME : /cgi-bin/DBM/db.cgi
SERVER_ADMIN : webmaster@technologyconsultants.com
SERVER_NAME : www.technologyconsultants.comSERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.0SERVER_SOFTWARE : Apache/1.2.6 FrontPage/3.0.4
USER : fmnewman
Quote Reply
Re: CGI Error In reply to
There is definitely something wrong with

/usr/local/etc/http/cgi-bin/DBM.usr/localetc/httpd/cgi-bin/DBM/html.pl

Did you try it with just
$db_script_path = ".";

You didn't define any other paths in your .cfg file, did you?


------------------
JPD





Quote Reply
Re: CGI Error In reply to
Yes JP- I did have an error in the path statement at line 51.....The Scoratic Method still works!
The only diff is that the path in the error is now correct. Still cannot find libs.

All the files are in the same directory. Here are the paths from .cfg: Also, I tried the "$db_script_path" as = "." and also as "/usr/local/etc/httpd/cgi-bin/DBM."

Likewise, I tried the .cfg path satements as /cgi-bin/DBM/file.name, also with no difference.

Syntax error in line 51?-($db_script_path)

Help! Ask me another question Oh Great Teacher.

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

Quote Reply
Re: CGI Error In reply to
In everything under $db_script_url, you can remove the paths to the files, dbMan gets the path itself and puts them into $db_script_path, which is then joined to each file.

So remove:

/usr/local/etc/httpd/cgi-bin/DBM

from all of those and it should work ok.

Make sure you leave the leading slash though!

So:

$db_file_name = $db_script_path . "/usr/local/etc/httpd/cgi-bin/DBM/default.db";

should read:

$db_file_name = $db_script_path . "/default.db";

... and so on.

Cheers,
adam
Quote Reply
Re: CGI Error In reply to
Thanks- Progress!
Now, the script can't find the auth directory, though it certainly is there complete with chmod 777- here's the error

CGI ERROR==========================================
Error Message : unable to open directory in auth_cleanup: ./DBM/auth. Reason: No such file or directory
Script Location : /usr/local/etc/httpd/cgi-bin/DBM/db.cgi
Quote Reply
Re: CGI Error In reply to
oops!
Found the problem with auth directory! I had a path statement to the auth directory in the .cfg file. Thanks Again. On to the program itself!
Fred
Quote Reply
Re: CGI Error In reply to
This is great! You guys aren't needing me at all. Smile Although I was going through withdrawal all day today when I couldn't get online.

Thanks, Adam.

------------------
JPD





Quote Reply
Re: CGI Error In reply to
Erra you could do with a day off. Know that feeling though, we could all do with a day off, but take us away from it for one day and we get panicky.

Pretty soon the Internet will be outlawed, and we'll be be hanging around illegal cybercafes looking for a hit. I'm telling ya, I can see the future!

Smile

adam