Gossamer Forum
Home : Products : DBMan : Installation :

What's the first step ?

Quote Reply
What's the first step ?
Ok.. I installed DBMan on the net, configured CFG file and checked all the permissions. So what should I do at first now ? I tried to access db.cgi and it just gives me an error : "DBMan encountered an internal error. Please enable debugging to view.".. I enabled $db_debug to 1 but no more information appeared.. So what should I do now ?

Quote Reply
Re: What's the first step ? In reply to
I would highly suggest you read the tutorial written by JPDeni. It can be found at http://www.jpdeni.com/dbman/

Have you setup all your fields in db.cgi under html_record_form and html_record?

How are you calling the script?

You may need to post a text copy of your .cfg file so that we can check it out. Also are you positive that you uploaded your files in ASCII mode?

Sorry to ask you questions, but more information is needed to help you.

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: What's the first step ? In reply to
Thanks for the address of the tutorials.. I'm studying it right now and maybe I'll be able to fix my problem very soon, but just for now i'm replying.

What should I set up in db.cgi ?
At first I thought that i had to setup default.cfg file only, and I did it.

I'm calling the script with just typing it's address which is http://cdnsk.com/cgi-bin/dbman/db.cgi

I did upload all scripts in ASCII mode, guess problem is somewhere else..

And finaly, i'm posting elements of .cfg to clear my situation for you a little :

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

other options contain their default values...

So, that's all for the moment, i'm going to learn tutorials for now :)
But anyway, thanks!

Quote Reply
Re: What's the first step ? In reply to
Okay that helps :)

try using instead:



$db_dir_url = "http://cdnsk.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";

If you do not want to create to modify the db.cgi file to include your own layouts then be sure you have auto generate turned on:

$db_auto_generate = 1;

Hope this helps :)

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: What's the first step ? In reply to
Nope, just that didn't help.. :(
Put entries you wrote to .cfg file, uploaded...
Set $db_auto_generate to 1... And then tried again to access cdnsk.com/cgi-bin/dbman/db.cgi... And once again : "DBMan encountered an internal error. Please enable debugging to view."... By the way, $db_debug is already set to 1...
What should I try now ? Maybe you could give me URL of just installed DBMan just to see, what is the first step and I'd like to try it a little. I think I'll like it and I'll continue my attempts to install it successefully ;)

Best regards, Kirill.

I guess i've got some useful information to help me... I changed debugging view in db.cgi (It was "if($db_debug)..." and i set it "if(1)..." ) and db.cgi showed me some information. Though $db_debug was already set to 1 in default.cfg, i think that db.cgi can't access the .cfg file and it cannot see all the other settings.
You can see, what debugging information displayed, it's avaible at http://cdnsk.com/cgi-bin/dbman/db.cgi..
The first lines are :
==========================================
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: syntax error at default.cfg line 39, near "$db_script_path "default.db""

Hmm.. I'm fixing problem online :))
Changed line 39 (
was : $db_file_name= $db_script_path "default.db"; - forgot a point in the middle :))
And....
Logon screen is here! :)...
But.... In the end - Internal Error again :(...
Please, see it.. address is above.. now i don't know where the problem is..
Quote Reply
Re: What's the first step ? In reply to
The error is now:

Error Message : error in search. unable to open database: .default.db.
Reason: No such file or directory


For the url to your database file do you have:

$db_file_name= $db_script_path "default.db";

or:

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

it should look like the one the last one .. the dot you removed should be there as it takes the script path and then tacks on the name of the .db file.



Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: What's the first step ? In reply to
No, the dot was there ( I did not remove it, i added it, you forgot that in example ), but there was "default.db", not "/default.db"... Now I'm trying that with slash..
Nope, nothing's happened... Login screen appears, but an internal error information appears also..

Well, I turned off displaying denug info, now it's not displayed.. Ok, everything seemed to be ok with installation for now, and i'm going to study how to work with that :)
Thank's a lot for your help!