Gossamer Forum
Home : Products : DBMan : Installation :

Debug mode?

Quote Reply
Debug mode?
(why didn't my first post get posted?)
I installed DBMan, but it says "Dbman encountered an error blah, blah, blah", so I turned on the debug mode in default.cfg, but it still doesn't display the problem, what I should do?
(BTW, the script is on http://vgl.vr9.com/cgi-bin/dbman/)



Quote Reply
Re: Debug mode? In reply to
You have some errors in your default.cfg:

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


These should be set to just the filenames, not a URL. For example:

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


Also, make sure you have uploaded all your files in ASCII mode.

If you still have problems, open up db.cgi and add the following under the line $db_script_path = ".";:

$db_debug = 1;

Good luck!

- Mark

Astro-Boy!!
http://www.zip.com.au/~astroboy/