Gossamer Forum
Home : Products : DBMan : Installation :

DBMan encountered an internal error...

Quote Reply
DBMan encountered an internal error...
Please, help me...
I haved tried all.

The files:
http://www.verminard.com/db.cgi.txt
http://www.verminard.com/default.cfg.txt

And here i haved installed:
http://www.verminard.com/cgi-bin/dbman/db.cgi

Thanks for any help...


Quote Reply
Re: DBMan encountered an internal error... In reply to
First of all in the following lines you only need the filenames for the variables if all your files are in the same directory:

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

See if that clears up your error, if not we can look further at your files.

Hope this helps

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: DBMan encountered an internal error... In reply to
Thanks,
I haved chaged the path... but it doesn't work.

any idea?

Quote Reply
Re: DBMan encountered an internal error... In reply to
First in your db.cgi you need to change this:
$db_script_path = "http://www.verminard.com/cgi-bin/dbman/";

to something like this:
$db_script_path = "/path/to/your/dbman/directory";

Please remember that wherever a variable refers to a path, it means just that, a path and not a URL.

When you've made that change to your db.cgi you can then follow the rest of Lois C. instructions.

Hope that helps.

easy does it
Quote Reply
Re: DBMan encountered an internal error... In reply to
Still doesn't work...
Thanks

Quote Reply
Re: DBMan encountered an internal error... In reply to
Do you have within your .cfg file:

$db_debug = 1;

so that it can display what the errors are? This will sometimes let you know what the problem is.


As JPDeni has stated many times in the forums there should only on very rare occasions be the need to set:

$db_script_path = within your db.cgi file

Do not include a path there unless all else fails, and it is necessary, it should work fine how it is set by default.

You might also want to check the resource center for a snippet of code called "Debugging - Useful Error Messages"
this can save hours of tracking down problems and errors.


Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: DBMan encountered an internal error... In reply to
In Reply To:
Still doesn't work...
I just checked the text version of your db.cgi file and you have :
$db_script_path = "/cgi-bin/dbman/";

This is still wrong...it has to be the complete path WITHOUT trailing backslash like this:
$db_script_path = "/home/www/verminard/cgi-bin/dbman";

Note: the /home/www part in the above example may be different on your servers but you get the idea I hope.

easy does it
Quote Reply
Re: DBMan encountered an internal error... In reply to
THABKS!
Finally work...

But, still have an error...
Can you check it?

http://www.verminard.com/cgi-bin/dbman/db.cgi

Quote Reply
Re: DBMan encountered an internal error... In reply to
In Reply To:
THABKS! Finally work... But, still have an error... Can you check it?
Now you have to make some changes to your default.cfg file. Change all of the following in your default.cfg to read like this:

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





easy does it
Quote Reply
Re: DBMan encountered an internal error... In reply to
I have made the changes.
But... the debug error persist.

Quote Reply
Re: DBMan encountered an internal error... In reply to
Now...you have to turn off the debug feature. To do this change what you have for $db_debug to the following:

Code:

$db_debug = 0;


1 = On
0 = Off

Regards,

Eliot Lee

Quote Reply
Re: DBMan encountered an internal error... In reply to
THANKS FOR ALL!!!
Now the script works...