Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Please Help, admin.cgi wants to download ???

Quote Reply
Please Help, admin.cgi wants to download ???
Please help

I have uploaded links to my domain all in ascii, but when I try to open admin.cgi it ask if I wants to download.

If I open the downloade file it says...

Error including libraries: Can't locate /cgi-bin/links/cgi-bin/admin/db.pl in @INC (@INC contains: /home/sites/site57/web/cgi-bin/links/cgi-bin/admin /usr/lib/perl5/mips-linux/5.00404 /usr/lib/perl5 /usr/lib/perl5/site_perl/mips-linux /usr/lib/perl5/site_perl .) at /home/sites/site57/web/cgi-bin/links/cgi-bin/admin/admin.cgi line 28.
Make sure they exist, permissions are set properly, and paths are set correctly.

HERE ARE SOME OF MY LINKS.CFG,
Maybe there are something wrong with that...

# This script is not freeware! Please read the README for full details
# on registration and terms of use.
# =====================================================================

# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/cgi-bin/links/cgi-bin/admin";
$db_dir_url = "http://home/sites/bassen.dk/web/cgi-bin/links/cgi-bin/admin";

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/cgi-bin/links/cgi-bin/pages";
$build_root_url = "http://bassen.dk/cgi-bin/links/cgi-bin/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 = ''; $db_smtp_server = '';

# Email address of the administrator. BE SURE TO SET!
$db_admin_email = 'rene.schuldt@get2net.dk';

# 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 = '';

---- Cutted ---

I hope someone can help me :-)




------------------
Rene Schuldt
www.bassen.dk
Quote Reply
Re: Please Help, admin.cgi wants to download ??? In reply to
It is probably not links.cfg where the problem is but admin.cgi

check it starts like this

#!/usr/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 \

with the #

of course your path to perl may be different
------------------------------------------
the other thing is, have you uploaded in ASCII not binary

------------------
-------------------------
http://www.freeontheweb.com/
Reviewed and rated resources for webmasters
-------------------------
Quote Reply
Re: Please Help, admin.cgi wants to download ??? In reply to
 
You may have a problem with your directory names.

$db_script_path = "/cgi-bin/links/cgi-bin/admin";

"cgi-bin" is often a restricted directory name. I don't know if your server will let you use it twice in a single path.

It should probably be something like:

$db_script_path = "/links/cgi-bin/admin";

although most servers would have your local path set up something like:

/usr/userid/

so the absolute path for links would look like:

$db_script_path = "/usr/userid/links/cgi-bin/admin";

or something to that effect. It's just a guess though.

Dan O.