Gossamer Forum
Home : Products : DBMan : Installation :

Not finding right file ??

Quote Reply
Not finding right file ??
Well im VERY new to the whole thing with PERL scripts. But i just had to use this great one.

So, i uploaded them all directely in the cgi-bin directory. And as you can see here I get the login page loaded, but cant seam to find any other files.

http://greylords.netfirms.com/cgi-bin/db.cgi

I printed this, if it could make things easier with trying to help me out.

QUERY_STRING =
HTTP_ACCEPT_LANGUAGE = en
SERVER_PROTOCOL = HTTP/1.0
HTTP_CONNECTION = Keep-Alive
REMOTE_PORT = 1490
HTTP_ACCEPT = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
HTTP_USER_AGENT = Mozilla/4.75 [en] (Win95; U)
GATEWAY_INTERFACE = CGI/1.1
HTTP_HOST = greylords.netfirms.com
SERVER_SOFTWARE = Apache/1.3.9 (Unix)
SERVER_ADMIN = Your Webmaster
SCRIPT_URI = http://greylords.netfirms.com/cgi/printenv
REMOTE_ADDR = 212.151.250.251
SCRIPT_NAME = /cgi/printenv
SCRIPT_URL = /cgi/printenv
HTTP_ACCEPT_ENCODING = gzip
SERVER_NAME = greylords.netfirms.com
DOCUMENT_ROOT = /d01/sec/s31/a0005ybd
REQUEST_URI = /cgi/printenv
HTTP_ACCEPT_CHARSET = iso-8859-1,*,utf-8
REQUEST_METHOD = GET
SCRIPT_FILENAME = /cgi/printenv
PATH = /usr/local/bin:/usr/bin:/bin
SERVER_PORT = 80
$>,$<, $), $( = 25101, 25101, 28673 28673, 28673 28673


And here is the default.cfg URL configuration.

# File and URL's
# --------------------------------------------------------
# URL of the directory dbman resides in. No Trailing Slash Please.
$db_dir_url = "$ENV{'DOCUMENT_ROOT'}/cgi-bin";
# 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 will be very grateful for any kind of help.

Let me know what else you might need to help me( and how to do it ;)

Johnny

I would also like to know the difference between theese to tags.

$db_script_path = "$ENV{'DOCUMENT_ROOT'}/cgi-bin";
(from DB.cgi)

$db_dir_url = "$ENV{'DOCUMENT_ROOT'}/cgi-bin";
(from default.cfg)

I figured something might be wrong with theese two, or ???

Johnny
Quote Reply
Re: Not finding right file ?? In reply to
Hi,

ummm... first did you figue this out? I went to your site and tried guest and admin to get but got:
http://greylords.netfirms.com/d01/sec/s31/a0005ybd/cgi-bin/db.cgi <-- your default error page.

If you haven't fixed it yet try changing your default.cfg to look like this

# URL of the directory dbman resides in. No Trailing Slash Please.
$db_dir_url = "http://greylords.netfirms.com/cgi-bin/dbman";
or
$db_dir_url = "http://greylords.netfirms.com/d01/sec/s31/a0005ybd/cgi-bin/dbman";


and in db.cgi

$db_script_path = ".";

$ENV{'DOCUMENT_ROOT'} is ... guessing here ... is where your account is locatd on the server. strange listing you got there.

I hope that this helps,

good luck



**************************************
on the pages in between ...
Quote Reply
Re: Not finding right file ?? In reply to
Thx

I think that worked, i hope.

At least i havnt found any problems yet ;)