Gossamer Forum
Home : Products : DBMan : Installation :

Script won't work when I move config files.

Quote Reply
Script won't work when I move config files.
Hi,

I have successfully gotten the demo database to load up and run, but when I attempt to move the configuration files to a separate location I get the following error: "DBMan encountered an internal error. Please enable debugging to view." Debugging is enabled, but, of course, the debug flag only gets set if the script can find the config file.

Here are samples of my path settings:

db.cgi:


$db_script_path = ".";


default.cfg:


# 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 . "/data/default.db";
# Full path and file name of the counter file.
$db_id_file_name = $db_script_path . "/data/default.count";
# Full path and file name of the authorization directory.
$auth_dir = $db_script_path . "/data/auth";
# Full path and file name of the password file.
$auth_pw_file = $db_script_path . "/data/default.pass";
# Full path and file name of the log file.
$auth_log_file = $db_script_path . "/data/default.log";
# Full path and file name of the html routines.
require $db_script_path . "/data/html.pl";


Anyone know what my problem is? Like I said, the demo works until I move the configuration files (i.e. everything except for db.cgi) to ./data. Permissions are all correct, and permissions on data are 777.
Quote Reply
Re: [aelon] Script won't work when I move config files. In reply to
When i store my password file for instance in another directory I enter the full PATH to the location in single quotes. Note that is the path not URL.

Give that a try and see if it works. I'm not sure if it's necessary to make your data directory 777.

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [aelon] Script won't work when I move config files. In reply to
Quote:
Anyone know what my problem is? Like I said, the demo works until I move the configuration files (i.e. everything except for db.cgi) to ./data.




For example:

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

is telling the scripts to use (left out from your post):
# URL of the directory dbman resides in. No Trailing Slash Please.
$db_dir_url = "http://yourdomain.com/path/to/dbman";

AND /data/default.db to arrive at this $db_file_name

~ Karen