Gossamer Forum
Home : Products : Links 2.0 : Discussions :

add.cgi - Crisis (take 2)

Quote Reply
add.cgi - Crisis (take 2)
I am having a crisis with the add.cgi and modify.cgi scripts. It basically close to the error mentioned on your CGI Scripts FAQ "Why am I getting an Internal Server Error 500 with add.cgi"

Only in this case it is not a 500 but a straight "Internal Server Error". The add.cgi works fine at first, the form comes up ready for me to add details, but when I click on Send, it gives the error. You have no idea how long I have spend checking, double checking, triple checking the sendmail path and my e-mail address, but I still keep getting it.

The Validate.db file DOES show the entry, so something is working...

# 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";

# $db_smtp_server = '';

# Email address of the administrator. BE SURE TO SET!

$db_admin_email = "dbhudia\@yahoo.com";

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

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

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

here is a seg from my formmail script to show that sendmail path is correct

----------------------
# This should match the mail program on your system.
$mailprog = '/usr/lib/sendmail';
# This should be set to the username or alias that runs your
# WWW server.
$recipient = 'dbhudia@yahoo.com';
---------------------

So what else is going wrong ? Oh yes the file is certainy 755 perission.

try for yourself

http://cgi.www.samaj.com/cgi-bin/www.samaj.com/links/add.cgi

Please help... i'm loosing it now
Quote Reply
Re: add.cgi - Crisis (take 2) In reply to
Try Elliots fix!

Change this

Quote:
$db_mail_path = "/usr/lib/sendmail";

to this:

Quote:
$db_mail_path = "|/usr/lib/sendmail -t";

See if that works.



------------------
www.nzcid.godzone.net.nz
New Zealand Christian Internet Directory




Quote Reply
Re: add.cgi - Crisis (take 2) In reply to
 
Quote:
the form comes up ready for me to add details, but when I click on Send, it gives the error.

UH>>> What error? Be more specific!

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: add.cgi - Crisis (take 2) In reply to
The error it gives is an 'Internal Server Error'

The Validate.db file does get appended, so part of the script must be working.

i just gave the
"|/usr/lib/sendmail -t" a try

still giving the same 'Internal Server Error' when I click on the submit button.

Frown This voluntarily maintained community website cannot go online without it.... it should have been on-line on 1/1/00 waaaaa First time I have missed a deadline... *sniff*

Someone pls help...

p.s add.cgi is set to -rwxr-xr-x that is right isn't it ? 755 i believe.

[This message has been edited by Narf (edited January 03, 2000).]
Quote Reply
Re: add.cgi - Crisis (take 2) In reply to
The problem is NOT with the sendmail options. The problem is most likely related to the WRONG Perl path in the first line of code.

Did you make any changes to these files??

Check your Perl path.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: add.cgi - Crisis (take 2) In reply to
On this line,
$db_admin_email = "dbhudia\@yahoo.com";


Does that slash not matter because i don't think i haveit on mine.

------------------
LookHard Search
lookhard.hypermart.net
Lavon Russell
Quote Reply
Re: add.cgi - Crisis (take 2) In reply to
For Elliot - If the Perl path was wrong... then none of the script would work.. would it ?

As for the e-mail, you can either do
'dbhudia@yahoo.com' or
"dbhudia\@yahoo.com"

Same thing.. tried both.. makes no diference

i'll take a look at the perl path... but it's the dsame as the rest of the links scripts.. and they work fine
Quote Reply
Re: add.cgi - Crisis (take 2) In reply to
Check your permissions on Mailer.pm

------------------
LookHard Search
lookhard.hypermart.net
Lavon Russell
Quote Reply
Re: add.cgi - Crisis (take 2) In reply to
Ah...Not entirely true. If you did not put the same Perl path as your other scripts, then it will NOT work. The permission of the Mailer.pm file SHOULD not matter. It should be set to 644 (default permissions).

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------




[This message has been edited by Eliot (edited January 04, 2000).]
Quote Reply
Re: add.cgi - Crisis (take 2) In reply to
Chabged the permmission of Mailer.pm to 644.

Still exactly the same problem, the form displays through the add.cgi script, but when i click submit, i hit an Internal Server error,

Any other clues as to what is going on ??
Quote Reply
Re: add.cgi - Crisis (take 2) In reply to
Forced me into registering instead of just lurking!

Have you double-checked the path to your sendmail? Many machines have diff paths /bin/sendmail for example. An incorrect path to sendmail would generate the error you are reporting. HTH

------------------
~ ~ ~ ~ ~
Karen
Quote Reply
Re: add.cgi - Crisis (take 2) In reply to
Switch off email features & see if the same problems occur