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

can add/modify links as admin, but not as user

Quote Reply
can add/modify links as admin, but not as user
(I searched the support boards but couldn't find an answer. I did uncover a thread from back in December but the solution was never posted.)

Here's my problem: I can post a link or modify a link as an administrator (in the control panel), but I get an internal server error when I try either one as an end user.

Any suggestions?

My error log says that the add.cgi script is being terminated due to premature ending of script headers.
Quote Reply
Re: can add/modify links as admin, but not as user In reply to
Did you look at the FAQ for add.cgi issues as a user?

--mark
Quote Reply
Re: can add/modify links as admin, but not as user In reply to
No, I didn't. But after you mentioned it, I did and still I can't solve the problem. Everything apparently checks out.

If sendmail is causing the problem, is there a way I can disable the mail feature? I don't really care if people get emailed when links are created, validated, or modified. If I disable it, at least, I will be able to tell if it's sendmail (or something related to that) that's causing the problem.

THANKS FOR YOUR HELP, MARK! I appreciate this.

[This message has been edited by fisch (edited March 26, 2000).]
Quote Reply
Re: can add/modify links as admin, but not as user In reply to
Yes...

Turn off the following variables:

Code:
$db_email_add
$db_email_modify

to look like the following:

Code:
$db_email_add = 0;
$db_email_modify = 0;

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: can add/modify links as admin, but not as user In reply to
Darn! I really thought that would work, but I still get the nasty Internal Server Error. So, what does that mean? It doesn't sound like it's related to the sendmail feature afterall.

Here's a quick excerpt from my links.cfg file, if that helps.

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

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/www/htdocs/links";
$build_root_url = "http://www.studyhalls.com/links";

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

# Email address of the administrator. BE SURE TO SET!
$db_admin_email = 'support@academos.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: can add/modify links as admin, but not as user In reply to
You are not using the complete absolute paths to your $build_root_path and $db_script_path in your links.cfg file.

Also, make sure you use the complete ABSOLUTE path to your links.cfg file in your .cgi files in the REQUIRED LIBRARIES section.

Also, make sure that you have the correct Perl path in your .cgi files.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: can add/modify links as admin, but not as user In reply to
I made all the corrections you suggested but still getting the error. Take a look: Studyhalls.com. If you want to poke around under the hood, I temporarily changed the (ftp) server access username and password to "letmein".

I appreciate your time and concern! Thank you so much for helping so far--it's been encouraging. I know you're not obligated in the least to help at all, let alone take it further from here. I am very very grateful that you've exerted energy to solve my situation. :-) I'm hoping a solution is around the corner (or at least a further suggestion).
Quote Reply
Re: can add/modify links as admin, but not as user In reply to
My guess is that:

# PATH of sendmail. # SMTP Server
$db_mail_path = '/bin/sendmail -t';

is not right. Try /usr/bin/sendmail or /usr/sbin/sendmail

--mark
Quote Reply
Re: can add/modify links as admin, but not as user In reply to
No, that's wasn't it either.

...GOOD NEWS though! I started over from scratch, re-installed and now it works. I'm a happy boy!!! However, now there's a different problem that seems unrelated to the last one, so I guess that's the topic for another thread.

THANKS for your help. When people are losing their sanity trying to fix a script, it's nice to know that some altruistic folks are out there to offer friendly advice. Thanks again.
Quote Reply
Re: can add/modify links as admin, but not as user In reply to
Welp...glad you got it running.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums