I'm stuck with OpenVMS; it does run Perl 5, so that's good.
Here's the URL I'm trying to run:
http://www.muohio.edu/cgi/~zoomuscwis/db.cgi
I absolutely cannot get "db.cgi" to run correctly. (Yes, I'm using the correct URL; I've tested sample CGI scripts here successfully.) Here is the server error message:
==========================================
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: Can't locate sys_users:[zoo.zoomuscwis.www.cgi]/html.pl in @INC at /sys_users/zoo/zoomuscwis/www/cgi/default.cfg line 51.
Script Location : sys_users:[zoo.zoomuscwis.www.cgi]db.cgi;3
Perl Version : 5.00397
Setup File : default.cfg
------------------------------
------------------------------
This error message is generated from the first section of the db.cgi file:
# If you run into problems, set $db_script_path to the full path
# to your directory.
$db_script_path = "sys_users:[zoo.zoomuscwis.www.cgi]";
# 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
# --------------------------------------------------------
# Make sure we are using perl 5.003, load the config file, and load the auth file.
eval {
unshift (@INC, $db_script_path);
require 5.003; # We need at least Perl 5.003
unless ($db_setup =~ /^[A-Za-z0-9]+$/) { die "Invalid config file name: $db_setup"; }
require "$db_setup.cfg"; # Database Definition File
require "auth.pl"; # Authorization Routines
};
The documentation tells me to edit another file, default.cfg and "set $db_dir_url to the director that db.cgi resides in." Here's the head of that file:
# --------------------------------------------------------
# URL of the directory dbman resides in. No Trailing Slash Please.
$db_dir_url = "sys_users:[zoo.zoomuscwis.www.cgi]";
# 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";
You'll note that I have used fully qualified paths to the cgi script directory, because I thought the problem lay with relative paths:
sys_users:[zoo.zoomuscwis.www.cgi]
Please help!
Here's the URL I'm trying to run:
http://www.muohio.edu/cgi/~zoomuscwis/db.cgi
I absolutely cannot get "db.cgi" to run correctly. (Yes, I'm using the correct URL; I've tested sample CGI scripts here successfully.) Here is the server error message:
Code:
CGI ERROR ==========================================
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: Can't locate sys_users:[zoo.zoomuscwis.www.cgi]/html.pl in @INC at /sys_users/zoo/zoomuscwis/www/cgi/default.cfg line 51.
Script Location : sys_users:[zoo.zoomuscwis.www.cgi]db.cgi;3
Perl Version : 5.00397
Setup File : default.cfg
------------------------------
------------------------------
This error message is generated from the first section of the db.cgi file:
Code:
#!/usr/local/bin/perl # If you run into problems, set $db_script_path to the full path
# to your directory.
$db_script_path = "sys_users:[zoo.zoomuscwis.www.cgi]";
# 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
# --------------------------------------------------------
# Make sure we are using perl 5.003, load the config file, and load the auth file.
eval {
unshift (@INC, $db_script_path);
require 5.003; # We need at least Perl 5.003
unless ($db_setup =~ /^[A-Za-z0-9]+$/) { die "Invalid config file name: $db_setup"; }
require "$db_setup.cfg"; # Database Definition File
require "auth.pl"; # Authorization Routines
};
The documentation tells me to edit another file, default.cfg and "set $db_dir_url to the director that db.cgi resides in." Here's the head of that file:
Code:
# File and URL's # --------------------------------------------------------
# URL of the directory dbman resides in. No Trailing Slash Please.
$db_dir_url = "sys_users:[zoo.zoomuscwis.www.cgi]";
# 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";
You'll note that I have used fully qualified paths to the cgi script directory, because I thought the problem lay with relative paths:
sys_users:[zoo.zoomuscwis.www.cgi]
Please help!