Gossamer Forum
Home : Products : DBMan : Installation :

Configuration problems

Quote Reply
Configuration problems
I am not able to open the demo database on my ISP's server. He upgraded perl from 5.002 to 5.005 and other scripts seem to run just fine.

I think it is me and the configuration that I am missing something. So, here is what I have done:

*****************************************************

db.cgi looks like this:

# If you run into problems, set $db_script_path to the full path
# to your directory.

$db_script_path = "http://www.apepart.net/cgi-bin/dbman";

# Load the form information and set the config file and userid.
local(%in) = &parse_form;
$in{'db'} ? ($db_setup = $in{'db'}) : ($db_setup = 'default');
$in{'uid'} ? ($db_uid = $in{'uid'}): ($db_uid = '');

# Required Librariers

******************************************************


I have got db.cgi pointed to perl in the first line:

#!/usr/local/bin/perl



********************************************************

default.cfg LOOKS LIKE THIS:

# File and URL's
# --------------------------------------------------------
# URL of the directory dbman resides in. No Trailing Slash Please.
$db_dir_url = "http://www.apepart.net/cgi-bin/dbman";

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

**************************************************************

I have copied these over as ASCII and checked the rights and
matched them as with the install instructions:



db.cgi (755) -rwxr-xr-x
html.pl (644) -rw-r--r--
auth.pl (644) -rw-r--r--
default.cfg (644) -rw-r--r--
default.pass (666) -rw-rw-rw-
default.count (666) -rw-rw-rw-
default.log (666) -rw-rw-rw-
default.db (666) -rw-rw-rw
auth (777) drwxrwxrwx



I have also included the directory as well. These are the only
modifications that I have made.

The error message is:

Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Quote Reply
Re: Configuration problems In reply to
I see one problem to start with --

$db_script_path = "http://www.apepart.net/cgi-bin/dbman";

This needs to be the file path, not the URL. But it probably will work if you just use the default

$db_script_path = ".";

If the default doesn't work, you'll have to find out the file path for your directory. If you use an FTP program, you'll probably be able to see the path pretty easily. If you use telnet to upload, there's a command which I can't remember that will give you the path. (Obviously, I use FTP. Smile )



------------------
JPD

All my advice is offered on the basis of kindness-ware. If I've helped you to solve a problem, go out of your way to be kind to someone today.

Quote Reply
Re: Configuration problems In reply to
From UNIX the following command will give you your full path: "pwd"