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

add.cgi, etc..

Quote Reply
add.cgi, etc..
hey there! believe me i didn't want to post but i've been trying to figure out what is going on with this for about three hours now and my eyeballs are about to pop out of my head.

everything works WONDERFULLY except for the add.cgi, modify.cgi, jump.cgi...and the search. the admin.cgi works fine, i added categories, added links through it, etc...

let me kind of state that i'm not a total dork with cgi, i've successfully installed a UBB on my page and tons of scripts before, so the perl path is right, the absolute path is right, i double checked my sendmail...

even there is no -t when i looked up in nifty telnet, i added the t and tried that. i've tried sendmail as well as smtp (not at the same time of course.) but since i'm on unix i left it with the sendmail.

at any rate, of course the permissions are all set to 755. i've been over the readme file kerjillions of times and the ONLY thing i can think of that i can't find listed anywhere is the links.cfg file -- what are the permissions for that, exactly? but then again, i've tried it at 644, 666, 755, and even 777 and no go.

Soooooo I'm kind of at a loss of what to do here. I've read through the forums and have already addressed all the problems everyone else seems to have trouble with, so i'm not asking for help blindly, and I really hate having to ask anyway, I'm sure you guys are uber busy. :-)

JUST in case you might need it, I'm going to go ahead and post the config file here so maybe someone else can see what I might be doing wrong. It has to be something simple I'm overlooking because I've been staring at it for three hours. :-)

the forum is probably going to put breaks in that won't be in my original file.... but here it is! :-) Thank you SOOOO much in advance.

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

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

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

# 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 = ('http://realmofredheads.com','209.15.80.175');

# 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/lib/sendmail -t'; $db_smtp_server = '';

# Email address of the administrator. BE SURE TO SET!
$db_admin_email = 'webmaster@realmofredheads.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 = '/home/realmof/public_html/cgi-bin/links/log.html';
Quote Reply
Re: add.cgi, etc.. In reply to
Add and jump worked just fine for me.

However, your config file has a major problem:

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/home/realmof/public_html/cgi-bin/links/pages";
$build_root_url = "http://realmofredheads.com/cgi-bin/links/pages";

That isn't where you files are. remove the cgi-bin

--mark
Quote Reply
Re: add.cgi, etc.. In reply to
mark, that's because i finally gave up, trashed it, and totally reinstalled it at a different location, and it was easy as pie. i'm not sure what happened the first time, for the LIFE of me i could not figure it out, but as soon as i took it totally out of my cgi bin and just set it up as links, it's been great. :-)

[This message has been edited by candi (edited March 23, 2000).]