Gossamer Forum
Home : Products : DBMan : Installation :

Debug info

Quote Reply
Debug info
Hi,

I just install dbman (Version: 2.04) on my personal page. You can check it at http://dragon.acadiau.ca/~034897s/cgi-bin/db.cgi. I've got several questions:

1. How do I eliminate the debug info? (go there any you'll know)

2. I did as it suggested: "Placing all the files in a cgi-bin directory is preferred." but when I enable the dir browsing feature, I still can see all the files. Then

A. What's the benifet to put them in "cgi-bin"?

B. Can I put them somewhere else outside my www directory (which is for the web page only). How to do that?

3. I delibrately download the .tar.gz version in hoping that I do not need to setup the file accessing rights, but I was very disappointed to find out that the setting in the installation file are all wrong and I have to set every file's mode again! I suggest make it better for the next version.

Thanks!
Quote Reply
Re: Debug info In reply to
Hi,

1. There should be a $db_debug option in the config file. Set this to 0 to turn it off.

2. If your server allows you to browse the cgi-bin directory (not common), then there is no advantadge. Most servers are setup so directory listing and page serving are turned off in the cgi-bin directory. You can move the sensitive files like the auth directory and the data files outside of the document tree. Just update the paths in the config file.

3. Oops, your right. The only difference between the .zip and the .tar.gz is that one has Windows linefeeds, the other doesn't.

Cheers,

Alex
Quote Reply
Re: Debug info In reply to
Thanks, Alex.

2. Please explain more about it:

My db.cgi is in /~034897s/www/cgi-bin as it is seen in my unix account, but it appears as /~034897s/cgi-bin on the web. So,

A. Should I adress it as in unix or as on web?

B. Please give a specific example (as in /~034897s/www/cgi-bin) how to "move it out of dir tree", and how to modify

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

line accordingly.

3. Aha!

Here is how I did it, in case someone else need it (or for you to include in the readme file):

chmod 755 db.cgi
chmod 666 defa*
chmod 644 defa*.cfg
chmod 777 auth

TIA!
Quote Reply
Re: Debug info In reply to
 
Quote:
2. Please explain more about it:
My db.cgi is in /~034897s/www/cgi-bin as it is seen in my unix account, but it appears as /~034897s/cgi-bin on the web. So,
A. Should I adress it as in unix or as on web?

You should set $db_script_path to your unix path '/~034897s/www/cgi-bin', and $db_dir_url to your web url '/~034897s/cgi-bin' (as well as the http://www.blah.com part).

Quote:
B. Please give a specific example (as in /~034897s/www/cgi-bin) how to "move it out of dir tree", and how to modify
$db_file_name = $db_script_path . "/default.db";

Well, let's say you create a directory:

/~034897s/db_data

then you could move your database out of the web tree by setting:

$db_file_name = '/~034897s/db_data/default.db';

Hope that helps,

Alex