Shhhss, I though that using this Demo will be a snap, but it turn out to make me snap! Frankly, I'm well verse in Designing website..using marcromedia flash is simple as abc. but this Db make me cry...Can any one out there help me in my problem(s)infact..in almost everything about db. I hope people out there. To make it short. I load-up the db file on my website..for you kind people to tell me OFF!! what the heck went wrong in my script.All file are load up in .txt file...easy for accessing. My Website address is at : http://www.stormpromotions.com Please Help me...this is my worse nightmares. Thank you
Sep 7, 2000, 6:50 AM
Enthusiast / Moderator (885 posts)
Sep 7, 2000, 6:50 AM
Post #3 of 8
Views: 3867
stormpromotions, please do not post the same problem in multiple forums. Although this would have been the proper location to post, I just requested additional input from you in another forum. By cross-posting you run the real risk that two people disregard your posts thinking someone else is trying to help you.
Sep 7, 2000, 9:23 AM
Enthusiast / Moderator (885 posts)
Sep 7, 2000, 9:23 AM
Post #6 of 8
Views: 3859
Hello stormpromotions,
500 Server Error usually indicates the files have not been uploaded correctly (ascii text format) or the path to perl is not accurate (first line of scripts). Please double-check those two items.
Additionally, your 500 server error could be coming from inaccuarate script paths listed in the config file.
$db_dir_url = "/www.stormpromotions.com/dbman";
# URL of dbman.
$db_script_url = $db_dir_url . "/stormpromotions.com/dbman/cgi-bin/db.cgi";
# Full Path and File name of the database file.
$db_file_name = $db_script_path . "/stormpromotions/dbman/cgi-bin/default.db";
# Full path and file name of the counter file.
$db_id_file_name = $db_script_path . "/stormpromotions/dbman/cgi-bin/default.count";
# Full path and file name of the authorization directory.
$auth_dir = $db_script_path . "/stormpromotions/dbman/cgi-bin/auth";
# Full path and file name of the password file.
$auth_pw_file = $db_script_path . "/stormpromotions/dbman/cgi-bin/default.pass";
# Full path and file name of the log file.
$auth_log_file = $db_script_path . "/stormpromotions/dbman/cgi-bin/default.log";
# Full path and file name of the html routines.
require $db_script_path . "/stormpromotions/dbman/cgi-bin/html.pl";Guessing from your entries above, your config should look something like this:
$db_dir_url = "http://www.stormpromotions.com/cgi-bin/dbman";
# URL of dbman.
$db_script_url = $db_dir_url . "/db.cgi"; #do not change unless
# Full Path and File name of the database file. #you have changed the
$db_file_name = $db_script_path . "/default.db"; #filenames
# 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";You have stormpromotions.com/dbman/cgi-bin however, your dbman folder should be inside your cgi-bin folder giving you this path:
stormpromotions.com/cgi-bin/dbman This is probably something else you need to correct on your file structure.
Make these changes, then resave your config file as a text file and repost it where it can be viewed on the web. Then post a reply here.
500 Server Error usually indicates the files have not been uploaded correctly (ascii text format) or the path to perl is not accurate (first line of scripts). Please double-check those two items.
Additionally, your 500 server error could be coming from inaccuarate script paths listed in the config file.
Code:
# URL of the directory dbman resides in. No Trailing Slash Please. $db_dir_url = "/www.stormpromotions.com/dbman";
# URL of dbman.
$db_script_url = $db_dir_url . "/stormpromotions.com/dbman/cgi-bin/db.cgi";
# Full Path and File name of the database file.
$db_file_name = $db_script_path . "/stormpromotions/dbman/cgi-bin/default.db";
# Full path and file name of the counter file.
$db_id_file_name = $db_script_path . "/stormpromotions/dbman/cgi-bin/default.count";
# Full path and file name of the authorization directory.
$auth_dir = $db_script_path . "/stormpromotions/dbman/cgi-bin/auth";
# Full path and file name of the password file.
$auth_pw_file = $db_script_path . "/stormpromotions/dbman/cgi-bin/default.pass";
# Full path and file name of the log file.
$auth_log_file = $db_script_path . "/stormpromotions/dbman/cgi-bin/default.log";
# Full path and file name of the html routines.
require $db_script_path . "/stormpromotions/dbman/cgi-bin/html.pl";
Code:
# URL of the directory dbman resides in. No Trailing Slash Please. $db_dir_url = "http://www.stormpromotions.com/cgi-bin/dbman";
# URL of dbman.
$db_script_url = $db_dir_url . "/db.cgi"; #do not change unless
# Full Path and File name of the database file. #you have changed the
$db_file_name = $db_script_path . "/default.db"; #filenames
# 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";
stormpromotions.com/cgi-bin/dbman This is probably something else you need to correct on your file structure.
Make these changes, then resave your config file as a text file and repost it where it can be viewed on the web. Then post a reply here.
Sep 7, 2000, 12:05 PM
Novice (5 posts)
Sep 7, 2000, 12:05 PM
Post #7 of 8
Views: 3862
It's been near 10hrs, i been trying it out, even after i make the changes according to your instruction,chmod 755,Upload it via ASCII,make sure again on my !/usr/bin/perl , confirm my path, and honestly i think i did according to the instruction. But why it still 500 Internal Server Error. Gosh...this is painfull.
I do appreciate your help karen..you may see the change at http://www.stormpromotions.com/db.txt and http://www.stormpromotions.com/default.cfg.txt Sorry to trouble you....
Thank you
I do appreciate your help karen..you may see the change at http://www.stormpromotions.com/db.txt and http://www.stormpromotions.com/default.cfg.txt Sorry to trouble you....
Thank you
Sep 7, 2000, 12:42 PM
Enthusiast / Moderator (885 posts)
Sep 7, 2000, 12:42 PM
Post #8 of 8
Views: 3829
Hi stormpromotions,
Sorry - you've got a lot going wrong in here. You really do need to review over the detailed instructions in the Readme.txt file :)
Here are some of the obvious things I see in the default.cfg file:
You are using your own db_key and that's okay.
$db_key = 'Passport Number';
However, you cannot have dbman automatically assign a sequential number. This needs to be changed.
$db_key_track = 1;
You have checkbox fields identified
'Fully Furnished' => [11, 'alpha', 0, 15, 0, 'Fully Furnished', ''],
%db_checkbox_fields = ('Fully Furnished' => 'Fully Furnished',
They should be:
'Fully Furnished' => [11, 'alpha', 0, 15, 0, '', ''],
%db_checkbox_fields = ( 'Fully Furnished' => 'Yes' );
You already have the name defined in the fieldName, now you only need the value for that field, Yes or empty (which would be no)
If you'll work on correcting all of these, we'll find out where you're at then :)
Sorry - you've got a lot going wrong in here. You really do need to review over the detailed instructions in the Readme.txt file :)
Here are some of the obvious things I see in the default.cfg file:
You are using your own db_key and that's okay.
$db_key = 'Passport Number';
However, you cannot have dbman automatically assign a sequential number. This needs to be changed.
$db_key_track = 1;
You have checkbox fields identified
'Fully Furnished' => [11, 'alpha', 0, 15, 0, 'Fully Furnished', ''],
%db_checkbox_fields = ('Fully Furnished' => 'Fully Furnished',
They should be:
'Fully Furnished' => [11, 'alpha', 0, 15, 0, '', ''],
%db_checkbox_fields = ( 'Fully Furnished' => 'Yes' );
You already have the name defined in the fieldName, now you only need the value for that field, Yes or empty (which would be no)
If you'll work on correcting all of these, we'll find out where you're at then :)