Gossamer Forum
Home : Products : DBMan : Installation :

Problem installing

Quote Reply
Problem installing
I have installed the .cgi and .pl files into cgi-bin. Other files are in /dbman including dbman/auth. Permissions are correct. On our server, the usual way of referencing scripts is //cgi.www.ourdomain.com/cgi-bin/www.ourdomain.com/scriptname and files in dbman (which is actually docs/dbman) would be referenced as /docs/www.ourdomain.com/dbman/filename. All of this generally works OK.

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

but I get an internal server error. The same is true if I put
"//cgi.www.ourdomain.com/cgi-bin/www.ourdomain.com/"
as the $db_dir_url

Can anyone help?
Thanks.
Tony.
Quote Reply
Re: [tbalazs] Problem installing In reply to
Hi,

Can you check perl syntax?

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tbalazs] Problem installing In reply to
I would suggest putting all the script files in one directory .. your cgi-bin

Please note that the $db_dir_url = is the URL to access the script and not a Path.

So it would be set to for instance: http://yourserver.com/cgi-bin/dbman
or however you would call the script from your browser

# File and URL's
# --------------------------------------------------------
# URL of the directory dbman resides in. No Trailing Slash Please.

$db_dir_url = "http://yourserver.com/cgi-bin/dbman";
$db_script_url = $db_dir_url . "/db.cgi";
$db_file_name = $db_script_path . "default.db";
$db_id_file_name = $db_script_path . "default.count";
$auth_dir = $db_script_path . "auth";
$auth_pw_file = $db_script_path . "default.pass";
$auth_log_file = $db_script_path . "default.log";
require $db_script_path . "html.pl";

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] Problem installing In reply to
It works! Thank you. Now I'm trying the configurator... Smile