Gossamer Forum
Home : Products : DBMan : Installation :

A 404 Problem logging in

Quote Reply
A 404 Problem logging in
Hi!
I'm testing the DBMAN, and everything goes perfect entering to the db.cgi file via the net, but I can't run the demo database, cause when I log on (whit any password, like admin/admin or guest/guest), I get the [404] Error - File Not Found.

Does anybody knows why?

My URL is: http://www.pcremates.com/cgi-bin/dbman/db.cgi
At Hypermart.

I will appreaciete your help,

------------------
Luis
Quote Reply
Re: A 404 Problem logging in In reply to
It looks like you have not properly referenced your db.cgi file in your configuration file. You have to use the virtual path (including the http://) in your $db_dir_url variable.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: A 404 Problem logging in In reply to
No, It has the http://, here's my default.cfg:

____
# URL of the directory dbman resides in. No Trailing Slash Please.
$db_dir_url = "http://www.pcremates.com/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.cgi";

# Database Definition
# --------------------------------------------------------
# Definition of your database. Format is
# field_name => ['position', 'field_type', 'form-length', 'maxlength', 'not_null', 'default', 'valid_expr']

%db_def = (
ID => [0, 'numer', 5, 8, 1, '', ''],
Title => [1, 'alpha', 40, 255, 1, '', ''],
URL => [2, 'alpha', 40, 255, 1, 'http://', '^http://'],
Type => [3, 'alpha', 0, 60, 1, '', ''],
Date => [4, 'date', 12, 15, 1, &get_date, ''],
Category => [5, 'alpha', 0, 255, 1, '', ''],
Description => [6, 'alpha', '40x3', 500, 0, '', ''],
Validated => [7, 'alpha', 0, 3, 1, 'Yes', 'Yes|No'],
Popular => [8, 'alpha', 0, 3, 0, '', ''],
Userid => [9, 'alpha', -2, 15, 0, '', '']
);

# The column name for the database key. Can be any column, but it must be unique!
# You can't have two records with the same key value!
$db_key = 'ID';
# Track the key? Should DBMan keep a counter of the next key to use? This isn't
# neccessary if you can guarantee that your entry in the key field will be unique
# (i.e. a userid).
$db_key_track = 1;
# Database delimeter.
$db_delim = '|';
# Use file locking (1 = Yes, 0 = No). Should be used, but won't work on Win95.
$db_use_flock = 1;
# Auto generate the html forms (1 = Yes, 0 = No).
$db_auto_generate = 0;
# Display Benchmarking Information (1 = Yes, 0 = No).
# use Benchmark; # Uncomment this line if benchmarking is used.
$db_benchmark = 0;
# Display Debugging Information (1 = Yes, 0 = No).
$db_debug = 1;

# Select fields. Field name => 'comma seperated list of drop down options'.
%db_select_fields = (
Category => 'General,Configuration Management,Project Management,Process Improvement,Standards,Testing & Quality Assurance',
Type => 'Web,Newsgroup,Mailing List,FTP,Gopher'
);

# Radio fields. Field name => comma seperated list of radio buttons.
%db_radio_fields = ( Validated => 'Yes,No' );

# Checkbox fields. Field name => Checkbox value.
%db_checkbox_fields = ( Popular => 'Yes' );

# Default maximum number of hits returned in a search.
$db_max_hits = 10;
# Bold search results (1 = Yes, 0 = No).
$db_bold = 1;
# Regular and title fonts used in auto_generatrion and html.pl.
$font = 'font face="verdana,arial,helvetica" size="2"';
$font_title = 'font face="verdana,arial,helvetica" size="4"';

# Authorization Options
# --------------------------------------------------------
# No Authentication? (1 = "there is no authentication", 0 = "there is authentication")
# If you choose no authentication, then set the permissions of what
# people can do with: @auth_default_permissions below.
$auth_no_authentication = 0;

# The amount of time in seconds that user files are kept in the
# auth directory before the program removes them. 2-6 hours is
# probably a good value.
$auth_time = 21600; # 6 hours (in seconds)

# Enable (1) or disable (0) logging.
$auth_logging = 1;

# Allow a default user? This means you can specify a user via the URL
# and skip the logon process. Use this to allow people to search without
# logging on, but require log in if they want to add/modify/remove etc.
# (1 = "yes", 0 = "no")
$auth_allow_default = 0;

# Default permissions used if there is no authentication, or for a default
# user. (View, Add, Delete, Modify, Admin), 1 = enable, 0 = disable.
@auth_default_permissions = (1,1,1,1,0);

# Allow people to sign up for their own userid/passwords? They will
# recieve default permissions.
$auth_signup = 1;

# Permissions a new signup should get.
@auth_signup_permissions = (1,1,1,1,0);

# Registered users: can modify/delete _only_ own records. For this to make
# sense you should set default off or to 1,0,0,0.
$auth_modify_own = 0;

# Registered users: can view _only_ own records. For this to make sense
# you should turn off default permissions.
$auth_view_own = 0;

# Auth user field. This is the field position in the database used for storing
# the userid who owns the record. Set to -1 if not used.
$auth_user_field = 9;

# URL to send user if they chose log off. Leave blank and the script will return to
# the logon prompt (although this only makes sense if you are using authentication).
$auth_logoff = "http://www.gossamer-threads.com/scripts/dbman/";

# ===========================================================================
# Build up some variables from your definitions. Internal use only.
foreach (sort { $db_def{$a}[0] <=> $db_def{$b}[0] } keys %db_def) {
push (@db_cols, $_);
$db_sort{$_} = $db_def{$_}[1];
$db_form_len{$_} = $db_def{$_}[2];
$db_lengths{$_} = $db_def{$_}[3];
$db_not_null{$_} = $db_def{$_}[4];
$db_defaults{$_} = $db_def{$_}[5];
$db_valid_types{$_} = $db_def{$_}[6];
($_ eq $db_key) and $db_key_pos = $db_def{$_}[0];
}
1;

__________
I put the debug var to 1, and the error appears:

CGI ERROR
==========================================
Error Message : Debug Information
Script Location : db.cgi
Perl Version : 5.00404
Setup File : default.cfg

Form Variables
-------------------------------------------

Environment Variables
-------------------------------------------
DOCUMENT_ROOT : /data1/hypermart.net/pcremates......

Thank's.
i appreaciate very much your help

Quote Reply
Re: A 404 Problem logging in In reply to
Contact Hypermart. It seems to be something wrong on their end.

Also, make sure that you have the correct ABSOLUTE path for your $db_script_path in your db.cgi file.

Good luck.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: A 404 Problem logging in In reply to
Jlmz:

There is nothing wrong with trying to run dbman on Hypermart servers.

Are you sure that you have all the files installed and have set the correct file permissions for each?

Since the upgrade on Hypermart you have to manually chmod all your files, as the servers are not recognizing preset permissions.



------------------
Creative Computing - Web Design
http://www.creativecomputing1.com/
Quote Reply
Re: A 404 Problem logging in In reply to
Yea...But if you do not configure scripts correctly based on server specifications, then scripts will not work.

THAT IS WHY I RECOMMENED HE CONTACT HYPERMART FOR GUIDANCE!

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: A 404 Problem logging in In reply to
 
Thank's a lot both. I will contact hypermart, but I don't know if they gonna help me with cgi problem.

How do I configuer my files manualy?:

"Since the upgrade on Hypermart you have to manually chmod all your files, as the servers are not recognizing preset permissions."

Please, be more specific, I don't understand this. You mean that I have to enter to the sitemanager and chmod my files?

Thank U Both.

Sincerly,
Luis
Quote Reply
Re: A 404 Problem logging in In reply to
You need to make sure that the permissions of your files are correct based on the README file. However, the problem you are experiencing is that the file is not found on your server. Which is a problem with the absolute path of the $db_script_path in your db.cgi file.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------



Quote Reply
Re: A 404 Problem logging in In reply to
jlmz:

It was not necessary for me to put a path the in db.cgi file to run this on Hypermart.

mine just says:

$db_script_path = ".";

unless you changed this it should work okay on Hypermart.

If you can't get this running, you could email me your username, server#, and password and I'll take a look at your directory and files. I manage several sites and databases on Hypermart servers.

I will delete your user information once I help you get this going.

Email to admin@creativecomputing1.com

The permissions you need on the files are:

db.cgi 755
html.pl 644
auth.pl 644
default.cfg 644
default.pass 666
default.count 666
default.log 666
default.db 666
/auth directory 777

Lois