Gossamer Forum
Home : Products : DBMan : Installation :

Installation Problems Part 4

Quote Reply
Installation Problems Part 4
I can get the demo database to work with bypassing the authentication routine (flag set to 1 for authentication) and I can view and search the records. I can't however modify or add to the demo database and get the following error.
Why would permission be denied for default.db ? Obviously it has been located and is in the correct path because otherwise I would not be able to view the records.
Help!


CGI ERROR
==========================================
Error Message : error in modify_records. unable to open db file: ./default.db.
Reason: Permission denied
Script Location : /netdrive/wj/be/bedbreakfastguide/cgi-bin/db.pl
Perl Version : 5.00502
Setup File : default.cfg
User ID : default
Session ID : default

Quote Reply
Re: Installation Problems Part 4 In reply to
You need to make default.db world writeable. Right now the script doesn't have permission to write to the database file, only read from it.

To fix, just chmod 666 (or -rw-rw-rw-) the file default.db.

Cheers,

Alex
Quote Reply
Re: Installation Problems Part 4 In reply to
Thanks Alex, but I need additional help regarding paths and permissions;

Per my ISP, I need to have my dbman files in one location and the perl scripts in the cgi-bin directory. I cannot make the auth directory a subdirectory of the cgi-bin directory.

Here is what I have done but it doesn't work correctly. For example, with this configuration, I can't access using:
http://www.bedbreakfastguide.com/cgi-bin/db.pl
but I can access using
http://www.bedbreakfastguide.com/cgi-bin/db.pl?uid=default

In the first case I get an error message saying the script can't locate the default.db file.
Any ideas will be appreciated of how to have the files in a separate directory other than cgi-bin (except for the perl scripts).
Thanks


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