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

Script does not work at all !!!

Quote Reply
Script does not work at all !!!
I sent you an email last week telling you I deleted the script, Well I got the nerve to try again and it still does not work.
There are alot of undefined directions in the script aswell as the readme file.

I have included my links.cfg file below.

(1).What about the permissions? there are other folders and files under the admin folder that are not specified in the readme.

(2).Where in the script do you specify this info?....
Upload the cascading style sheet: links.css and the background image
to the directory where you want the pages created.

Begin links.cfg

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

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/usr/home/teeniebeanies/htdocs/links/pages";
$build_root_url = "http://www.teeniebeanies.net/links/pages";

# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "$build_new_path = "$build_root_path/New";
$build_new_url = "$build_new_url = "$build_root_url/New";

# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "$build_cool_path = "$build_root_path/Cool";
$build_cool_url = "$build_cool_url = "$build_root_url/Cool";

# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "$build_ratings_path = "$build_root_path/Ratings";
$build_ratings_url = "$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 = 1;
# Use IIS headers? Set this to 1 if your web server needs the full headers (HTTP/1.0 etc.)
$db_iis = 1;
# 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 = '/usr/sbin/sendmail'; #$db_smtp_server = '';

# Email address of the administrator. BE SURE TO SET!
$db_admin_email = 'webmaster@teeniebeanies.net';

# 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 = '/usr/home/teeniebeanies/linksdb';

# Build Options
# --------------------------------------------------------
# Setting for popular cutoff, can either be a percent (i.e. top 3%), or
# a fixed value (i.e. top 10). Enter 0.03 or 10 respectively.
$db_popular_cutoff = 0.10; # Top 3%
# Number of days a link is considered New.
$db_new_cutoff = 14; # 14 days old.
# Return search results bolded (1 = yes, 0 = no).
$search_bold = 1;
# The name of an index file.
$build_index = "index.html";
# The extension to use for non index files:
$build_extension = ".html";

# Should your add.cgi automatically select what category the user
# is adding his link into?
$db_single_category = 1;

# Directory Permissions. Do NOT put quotes around it. Set to 0777
# for world writeable. If you put this at 0755, you might need a
# script to remove any directories created as they will be owned
# by the web server or user nobody. Better solution might be to
# run the nph-build routine from the command shell.
$build_dir_per = 0777;

# The script can now break up category pages that have more then x
# number of links in it. It will also create next and previous links
# to help navigate. Set this to 1 if you want to break up pages or 0 if
# you want to have only one page per category.
# Setting this to one, will also break up the What's New pages into
# per day sections (not affected by number of links per page).
$build_span_pages = 1;

# Number of links per page.
$build_links_per_page = 10;

# Detailed View: The script can build a single html page per link. This is
# great if you have a review in your database. To enable, you must set
# the directory where all the pages will be stored, the url to that directory
# and set the enable option.
$build_detailed = 0;
$build_detail_path = "$build_root_path/Detailed";
$build_detail_url = "$build_root_url/Detailed";

# Use Templates: instead of editing site_html.pl, you can edit regular html pages
# encoded with special <%links_tags%>. It's not as flexible as site_html.pl, but it
# may be easier.
$build_use_templates = 1;

# Site Title, the default title to use. You should really spend some time customizing
# the directory though!
$build_site_title = 'Gossamer Threads Links';

# Date Routines
# --------------------------------------------------------
# Your date format can be whatever you like, as long as the following
# two functions are defined &date_to_unix and &unix_to_date:
# The default is dd-mmm-yyyy.

sub date_to_unix {
# --------------------------------------------------------

Topdog
P.S. I'm not a novice but, with this script, please treat me like one.

Quote Reply
Re: Script does not work at all !!! In reply to
I see that your @db_referers fill is left blank. Fill in your domain and IP in it.

# Referers -- which hosts are allowed to add to your database.
@db_referers = ('HOST','IP');

Hope that this is the problem.
Quote Reply
Re: Script does not work at all !!! In reply to
This is the error I'm receiving now.....

Error including libraries: Bad name after net:: at /usr/home/teeniebeanies/cgi-bin/links/admin/links.cfg line 69.

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

The only thing on line 69 is this.....
$db_mail_path = 'webmaster@teeniebeanies.net'; $db_smtp_server = 'SMTP.GTE.NET';

Any Ideas????????
Quote Reply
Re: Script does not work at all !!! In reply to
RTFML! Just before the line you have problems with, it says:
# 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!

Your own email address shouldn't be in this line.
HTH
Quote Reply
Re: Script does not work at all !!! In reply to
Yes I know. I already fixed that. (stupid me)
Now that I fixed that, this is the error message I'm getting.....
Error including libraries: Illegal division by zero at /usr/home/teeniebeanies/cgi-bin/links/admin/links.cfg line 69.

Make sure they exist, permissions are set properly, and paths are set correctly.
Quote Reply
Re: Script does not work at all !!! In reply to
This is how I have it in the script, It may not look right due to the small text box of this board.

# PATH of sendmail. # SMTP Server
$db_mail_path = '/usr/sbin/sendmail'; $db_smtp_server = '';
Quote Reply
Re: Script does not work at all !!! In reply to
Hmm... I don't see any division zero there. Well, I suggest that you create a new file(Unix), copy all the links.cfg and paste it in the new file. Use EditPlus, at http://www.editplus.com .
Quote Reply
Re: Script does not work at all !!! In reply to
Thanks Eddie ! Using the editor you suggested worked. I have no clue to what was happening before. I was using notepad. To wierd for me. Like I said in a previous post, I'm not a novice at Perl, thats why this one had me so stumped. I use note pad for everything.

Well, Thanks again for your expertise. :-)
Quote Reply
Re: Script does not work at all !!! In reply to
No problem, and keep using EditPlus for cgi stuff. Smile

[This message has been edited by Eddie (edited July 18, 1999).]