Gossamer Forum
Home : Products : DBMan : Installation :

K.... Now I am at a total loss.....

Quote Reply
K.... Now I am at a total loss.....
I am not a programmer at all.... big question is - where to I set the path to PERL? I know what the path should be, but I don't know where in db.cgi it is! I need a road map with great directions!

I also need to know if I am putting the right info in the right spot. I have been putting the full path in (files are all in .... http://www.f1-technologies.com/cgi/dbman/.... following is what I have set

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

I've double checked all permissions (that I have downpat with CUTE FTP)

ANY help or advice would be MOST welcome! I am only playing with the script right now... saw it on a CGI discusison forum as highly recommended... if only I could get it to work!

Thanks in advance.

Trish

Quote Reply
Re: K.... Now I am at a total loss..... In reply to
1) The Perl path is configured in the FIRST line of the db.cgi script.

Example:

#!/usr/bin/perl

2) And you are mixing relative paths with full paths in your configurations.

First of all, you need to use:

Code:

$db_script_path = ".";


OR

Code:

$db_script_path = "/full/path/to/cgi-bin/dbman";


in the db.cgi script.

It looks to me like you hacking the default.cfg file to death.

I would highly recommending visiting the following web site:

http://www.jpdeni.com/dbman/

and use the CONFIGURATOR program to "configure" your DBMAN.

Regards,

Eliot Lee
Quote Reply
Re: K.... Now I am at a total loss..... In reply to
The http://www.jpdeni.com/dbman/ site is GREAT! It answered all my questions (even to ones I didn't know I had yet!)

I recommend the tutorial to ANYONE who is new to CGI-Perl scripting and looking to install and test DBMan.

Thanks for the help!

Trish