Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

run admin.cgi problem!

Quote Reply
run admin.cgi problem!
When 1 run admin.cgi,it occur :
Error including libraries: Can't locate links.cfg in @INC (@INC contains:
/data1/hypermart.net/wilson33/cgi-bin/links/
admin/usr/local/lib/perl5/i386-bsdos/5.00404 /usr/local/lib/perl5
/usr/local/lib/perl5/site_perl/i386-bsdos /usr/local/lib/perl5/site_perl .) at
/data1/hypermart.net/wilson33/cgi-bin/links/admin/ADMIN.CGI line 27.

Make sure they exist, permissions are set properly, and paths are set correctly.

So that, How do I do? Thank you
My Links.cfg :
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/data1/hypermart.net/wilson33/links/cgi-bin/links/admin";
$db_dir_url = "http://wilson33.hypermart.net/links/cgi-bin/links/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://wilson33.hypermart.net/links/cgi-bin/links";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/data1/hypermart.net/wilson33/pages";
$build_root_url = "http://wilson33.hypermart.net/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";

# Database Options
# --------------------------------------------------------
# You really need to use flock(). However if your system doesn't support it (Win95),
# then turn this off at your own risk!
$db_use_flock = 1;
# Use Pragma: no-cache to stop browsers from caching output? (0 = cache, 1 = nocache)
$db_nocache = 0;
# Use IIS headers? Set this to 1 if your web server needs the full headers (HTTP/1.0 etc.)
$db_iis = 0;
# Field number of category in category.db
$db_main_category = 1;
# Referers -- which hosts are allowed to add to your database.
@db_referers = ();

# Email Options
# --------------------------------------------------------
# NOTE: Be sure to edit the text of the message. It can be found
# in the templates directory: email-add.txt, email-del.txt and
# email-mod.txt respectively.

# Set only ONE of either $db_mail_path which should go to a
# mail program like sendmail, or $db_smtp_server which will use
# a SMTP server. Do not set both at once!

# PATH of sendmail. # SMTP Server
$db_mail_path = '/var/qmail/bin/qmail-inject'; $db_smtp_server = '';

# Email address of the administrator. BE SURE TO SET!
$db_admin_email = 'wilson33@hongkong.com';

# Notify visitors automatically when their links are validated?
$db_email_add = 0;

# Notify visitors automatically when their links are modified?
$db_email_modify = 0;

# Log all outgoing messages? Put the full path to a logfile and make sure it
# exists and is writeable (chmod 666 -rw-rw-rw-). This logfile can get pretty
# big!
$db_mailer_log = '';
Quote Reply
Re: run admin.cgi problem! In reply to
It appears that you don't have your paths set correctly. If you look at the error message it tells you that your admin.cgi is in

/data1/hypermart.net/wilson33/cgi-bin/links/admin

but in your links.cfg you have

$db_script_path = "/data1/hypermart.net/wilson33/links/cgi-bin/links/admin";

do you mean to have this extra /links/ in there?

Hope this Helps





------------------
Ken Chidlow
chidlow@gossamer-threads.com
Quote Reply
Re: run admin.cgi problem! In reply to
Yep...I do think that is the problem, the script is looking for an non-existant directory called links within your admin directory

------------------
Shawn