Gossamer Forum
Home : Products : DBMan : Installation :

Installation - What am I doing wrong?

Quote Reply
Installation - What am I doing wrong?
Just installed DBMan with the help of jpdeni's site and forum, but unable to even get past the first test.

Here are the error results from running db.cgi:

DBMan encountered an internal 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/cust3/usr3123/cgi-bin/dbman/home/cust3/usr3123/cgi-bin/dbman/html.pl in @INC (@INC contains: /home/cust3/usr3123/cgi-bin/dbman /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .) at /home/cust3/usr3123/cgi-bin/dbman/default.cfg line 51.

Script Location : db.cgi
Perl Version : 5.00503
Setup File : default.cfg

Form Variables
-------------------------------------------

Environment Variables
-------------------------------------------
DOCUMENT_ROOT : /home/cust3/usr3123/html
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : */*
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_CONNECTION : Keep-Alive
HTTP_HOST : victoryoflight.com
HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
PATH : /usr/local/bin:/usr/bin:/bin
QUERY_STRING :
REMOTE_ADDR : 216.68.185.190
REMOTE_PORT : 1623
REQUEST_METHOD : GET
REQUEST_URI : /cgi-bin/dbman/db.cgi
SCRIPT_FILENAME : /home/cust3/usr3123/cgi-bin/dbman/db.cgi
SCRIPT_NAME : /cgi-bin/dbman/db.cgi
SERVER_ADMIN : smith@spicedesign.com
SERVER_NAME : www.victoryoflight.com
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.1
SERVER_SOFTWARE : Apache/1.3.12 (Unix) FrontPage/4.0.4.3 mod_ssl/2.6.2 OpenSSL/0.9.5

I'm guessing I have incorrectly set a path but the line it's referring looks right to me.

Here's my main directory structure and permissions:
drwxr-xr-x /cgi-bin/
drwxr-xr-x /cgi-bin/dbman/
drwxr-xr-x /data/
drwxr-xr-x /data/dbman/

file locations and permissions:
drwxrwxrwx /cgi-bin/dbman/auth/
-rw-r--r-- /cgi-bin/dbman/auth/index.html
-rw-r--r-- /cgi-bin/dbman/auth.pl
-rwxr-xr-x /cgi-bin/dbman/db.cgi
-rwxr-xr-x /cgi-bin/dbman/db.cgi.bak
-rw-r--r-- /cgi-bin/dbman/default.cfg
-rw-r--r-- /cgi-bin/dbman/default.cfg.bak
-rw-r--r-- /cgi-bin/dbman/html.pl
-rw-rw-rw- /data/dbman/default.count
-rw-rw-rw- /data/dbman/default.db
-rw-rw-rw- /data/dbman/default.log
-rw-rw-rw- /data/dbman/default.pass

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


db.cgi settings:
#!/usr/bin/perl
$db_script_path = "http://victoryoflight.com/cgi-bin/dbman/";
$db_debug = 1;

All files were uploaded in ASCII using ws_FTP and I haven't changed anything else. Let me know if you need more information and thanks for your assistance.


Quote Reply
Re: Installation - What am I doing wrong? In reply to
Thats because the path should be.....

/home/cust3/usr3123/cgi-bin/dbman

NOT

/home/cust3/usr3123/cgi-bin/dbman/home/cust3/usr3123/cgi-bin/dbman


Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Installation - What am I doing wrong? In reply to
Yes, I gathered that, but where in the script do I have it wrong? I never typed in the path twice.

Incidentally, I noticed that I had a URL instead of path in db.cgi. I corrected that and it now reads:

# If you run into problems, set $db_script_path to the full path
# to your directory.
$db_script_path = "/home/cust3/usr3123/cgi-bin/dbman";

However this correction did not solve the problem.
My error now reads:

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/cust3/usr3123/cgi-bin/dbman//home/cust3/usr3123/data/dbman/html.pl in @INC (@INC contains: /home/cust3/usr3123/cgi-bin/dbman/ /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .) at /home/cust3/usr3123/cgi-bin/dbman//default.cfg line 51.

Script Location : db.cgi
Perl Version : 5.00503
Setup File : default.cfg

It looks obvious to me that it's repeating the value for $db_script_path in the db.cgi file, but leaving that variable as default value doesn't work either.

I don't know how to fix that.


Quote Reply
Re: Installation - What am I doing wrong? In reply to
It is because you have altered the following paths/urls when they should have been left as their default......

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



You only needed to edit this...........

# URL of the directory dbman resides in. No Trailing Slash Please.
$db_dir_url = "http://victoryoflight.com/cgi-bin/dbman";





Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Installation - What am I doing wrong? In reply to
"oops" :: sheepishly, she says :: It works just fine now. :) guess I got a little over-zealous. Thank you much!

Quote Reply
Re: Installation - What am I doing wrong? In reply to
No problem.

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/