Hi, I have been trying to install Links 2.0 on my directory in the Hypermart server for the last couple of days, but have made little progress. What should I do next? Just to cover the basics, I confirmed the path to the PERL interpreter is correct, I FTP'ed the files in ASCII and chmoded them per the README.TXT but when I try to run the admin.cgi I get an error message [500] Error- Internal Server Error.
The following are: the error message, the top few lines from links.cfg and admin.cfg from my site.
Errors:
exec of /data1/hypermart.net/lyssmurphey/cgi-bin/links/cgi-bin/admin/admin.cgi failed, reason: No such file or directory (errno = 2)
[Tue Mar 2 17:47:24 1999] access to /data1/hypermart.net/lyssmurphey/cgi-bin/links/cgi-bin/admin/admin.cgi failed for 199.217.140.22, reason: Premature end of script headers
____________________________________________________________________
links.cfg (header chopped off)
=====================================================================
# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/data1/hypermart.net/goodreferences/cgi-bin/links/admin";
$db_dir_url = "http://www.goodreferences.com/cgi-bin/links/admin";
# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://www.goodreferences.com/cgi-bin/links/cgi-bin";
# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/data1/hypermart.net/goodreferences/cgi-bin/links/pages";
$build_root_url = "http://www.goodreferences.com/cgi-bin/links/pages";
# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "$build_root_path/New";
$build_new_url = "$build_root_url/New";
# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "$build_root_path/Cool";
$build_cool_url = "$build_root_url/Cool";
# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "$build_root_path/Ratings";
$build_ratings_url = "$build_root_url/Ratings";
__________________________________________________________________________
admin.cgi
#!/usr/local/bin/perl
# -------------
# Links
# -------------
# Links Manager
#
# File: admin.cgi
# Description: This is the administrative interface for the links program.
# Author: Alex Krohn
# Email: alex@gossamer-threads.com
# Web: http://www.gossamer-threads.com/
# Version: 2.0
#
# (c) 1998 Gossamer Threads Inc.
#
# This script is not freeware! Please read the README for full details
# on registration and terms of use.
# =====================================================================
#
# Required Librariers
# --------------------------------------------------------
eval {
($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script location: UNIX /
($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"); # Get the script location: Windows \
require 5.001; # Make sure we have at least perl 5.001.
require "/data1/hypermart.net/goodreferences/cgi-bin/links/cgi-bin/admin/links.cfg";
require "$db_lib_path/db.pl"; # Database Routines.
require "$db_lib_path/db_utils.pl"; # Database Support utilities.
require "$db_lib_path/admin_html.pl"; # Admin HTML routines.
};
if ($@) {
print "Content-type: text/plain\n\n";
print "Error including libraries: $@\n";
print "Make sure they exist, permissions are set properly, and paths are set correctly.";
exit;
}
# ========================================================
eval { &main; }; # Trap any fatal errors so the program hopefully
if ($@) { &cgierr("fatal error: $@"); } # never produces that nasty 500 server error page.
exit; # There are only two exit calls in the script, here and in in &cgierr.
# ========================================================
[This message has been edited by Lyss (edited March 02, 1999).]
The following are: the error message, the top few lines from links.cfg and admin.cfg from my site.
Errors:
exec of /data1/hypermart.net/lyssmurphey/cgi-bin/links/cgi-bin/admin/admin.cgi failed, reason: No such file or directory (errno = 2)
[Tue Mar 2 17:47:24 1999] access to /data1/hypermart.net/lyssmurphey/cgi-bin/links/cgi-bin/admin/admin.cgi failed for 199.217.140.22, reason: Premature end of script headers
____________________________________________________________________
links.cfg (header chopped off)
=====================================================================
# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/data1/hypermart.net/goodreferences/cgi-bin/links/admin";
$db_dir_url = "http://www.goodreferences.com/cgi-bin/links/admin";
# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://www.goodreferences.com/cgi-bin/links/cgi-bin";
# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/data1/hypermart.net/goodreferences/cgi-bin/links/pages";
$build_root_url = "http://www.goodreferences.com/cgi-bin/links/pages";
# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "$build_root_path/New";
$build_new_url = "$build_root_url/New";
# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "$build_root_path/Cool";
$build_cool_url = "$build_root_url/Cool";
# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "$build_root_path/Ratings";
$build_ratings_url = "$build_root_url/Ratings";
__________________________________________________________________________
admin.cgi
#!/usr/local/bin/perl
# -------------
# Links
# -------------
# Links Manager
#
# File: admin.cgi
# Description: This is the administrative interface for the links program.
# Author: Alex Krohn
# Email: alex@gossamer-threads.com
# Web: http://www.gossamer-threads.com/
# Version: 2.0
#
# (c) 1998 Gossamer Threads Inc.
#
# This script is not freeware! Please read the README for full details
# on registration and terms of use.
# =====================================================================
#
# Required Librariers
# --------------------------------------------------------
eval {
($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script location: UNIX /
($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"); # Get the script location: Windows \
require 5.001; # Make sure we have at least perl 5.001.
require "/data1/hypermart.net/goodreferences/cgi-bin/links/cgi-bin/admin/links.cfg";
require "$db_lib_path/db.pl"; # Database Routines.
require "$db_lib_path/db_utils.pl"; # Database Support utilities.
require "$db_lib_path/admin_html.pl"; # Admin HTML routines.
};
if ($@) {
print "Content-type: text/plain\n\n";
print "Error including libraries: $@\n";
print "Make sure they exist, permissions are set properly, and paths are set correctly.";
exit;
}
# ========================================================
eval { &main; }; # Trap any fatal errors so the program hopefully
if ($@) { &cgierr("fatal error: $@"); } # never produces that nasty 500 server error page.
exit; # There are only two exit calls in the script, here and in in &cgierr.
# ========================================================
[This message has been edited by Lyss (edited March 02, 1999).]