Gossamer Forum
Home : Products : DBMan : Installation :

dbman defaults to ".com" in error

Quote Reply
dbman defaults to ".com" in error
In installing the dbman demo on limericks.org, I find that dbman looks for files on limericks.com.

Take a look at my files at:

http://limericks.org/dbmanproblem.html

Arthur
limerick@spamcop.net

Quote Reply
Re: dbman defaults to ".com" in error In reply to
In your default.cfg file, you've entered /cgi-bib/.

Typo? Smile

- Mark

Astro-Boy!!
http://www.zip.com.au/~astroboy/
Quote Reply
Re: dbman defaults to ".com" in error In reply to
Hey thanx — I fixed the typo(s) and now I get a "DBMan encountered an internal error." message. I still need help.

Quote Reply
Re: dbman defaults to ".com" in error In reply to
The following is incorrect in the db.cgi file.

Code:

$db_script_path = "http://www.limericks.org/cgi-bin/dbman";


This must be the ABSOLUTE path NOT RELATIVE/VIRTUAL path to your dbman directory...It should look like the following:

Code:

$db_script_path = ".";


OR

Code:

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


Hope this helps.

Regards,

Eliot

Quote Reply
Re: dbman defaults to ".com" in error In reply to
I made the change to "." No Joy. I still get the "DBMan encountered an internal error. " message.

Arthur

Quote Reply
Re: dbman defaults to ".com" in error In reply to
Did you try my second suggesion???? USE your server's ABSOLUTE path to the dbman directory!!!! Tongue

Do you know the difference between ASBOLUTE and RELATIVE paths????

Regards,

Eliot


Quote Reply
Re: dbman defaults to ".com" in error In reply to
Well, I guess I don't...I thought "absolute path" was a path relative to the root directory; its first character must be the pathname separator. And so I used $db_script_path = "/cgi-bin/dbman";. That's not correct, is it? Help!

Arthur


Quote Reply
Re: dbman defaults to ".com" in error In reply to
No...that is NOT correct.

I would recommend the following:

1) Contact your hosting company and ask them what your absolute path is.

2) If you have telnet access, you can find out the absolute path by looking at the path before the command prompt. It should look something like the following:

Code:

server1:/absolute/path/to/youraccount#


Then you would add the /absolute/path/to/youraccount/ BEFORE the cgi-bin/dbman.

I REALLY hope this helps.

Best of luck!

Regards,

Eliot Lee

Quote Reply
Re: dbman defaults to ".com" in error In reply to
Still No Joy. I contacted my host and changed the script path to : $db_script_path = "/custs/home/l/lim15179/public_html/cgi-bin/dbman";

But I still get the error message: DBMan encountered an internal error.

That was a good try (thanks) but I still need help...

Quote Reply
Re: dbman defaults to ".com" in error In reply to
Uh...did you change the permission of the file to 755?!?!?

Read the Target Shooting section of the README file CAREFULLY!

Wink

Regards,

Eliot Lee

Quote Reply
Re: dbman defaults to ".com" in error In reply to
Yes, I checked & double checked [there is an error in the README.txt, but I caught it: it shows (755) as -rwxr--r--] — a possible clue to my problem is that although I've set $db_debug = 1, it never gets far enough along to debug.

Quote Reply
Re: dbman defaults to ".com" in error In reply to
Welp...the following variables are also incorrect in your default.cfg (not .cgi) file:

Code:

# Full Path and File name of the database file.
$db_file_name = "http://limericks.org/cgi-bin/dbman/default.db";
# Full path and file name of the counter file.
$db_id_file_name = "http://limericks.org/cgi-bin/dbman/default.count";
# Full path and file name of the authorization directory.
$auth_dir = "http://limericks.org/cgi-bin/dbman/auth";
# Full path and file name of the password file.
$auth_pw_file = "http://limericks.org/cgi-bin/dbman/default.pass";
# Full path and file name of the log file.
$auth_log_file = "http://limericks.org/cgi-bin/dbman/default.log";
# Full path and file name of the html routines.
require "http://limericks.org/cgi-bin/dbman/html.pl";


Again...these need to be set to the ABSOLUTE PATH using the $db_script_path variable, like the following:

Code:

# 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";


I thought you would've picked up my earlier suggestions and apply it to your other files.

Anyway...if that doesn't work...then double check your perl path in the db.cgi file.

Regards,

Eliot

Quote Reply
Re: dbman defaults to ".com" in error In reply to
I had just discovered that error [a left over from my misguided attempt to eliminate the .com problem]...I think it's working now! I'll check it out Many many thanks.

Arthur