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

error but every thing works

Quote Reply
error but every thing works
I am getting an Internal Server Error


The server encountered an internal error or misconfiguration and was unable to complete your request

I am getting this error when using the add.cgi to add a link. Even though I am getting this error the link is in the validate.db waiting to be validated.

If I use the add link from the administration I get no error at all.
Any ideas what might be wrong?



Quote Reply
Re: error but every thing works In reply to
Either your $db_mail_path or $db_smtp_server variables are configured incorrectly (as referenced a few times in this forum -> Internal Server Error add.cgi).

You need to configure ONLY one of the variables. Make sure that you are using EITHER the correct SENDMAIL path or SMTP server.

Regards,

Eliot Lee
Quote Reply
Re: error but every thing works In reply to
I have the mail pointing only to send mail, so I guess there is a sever sendmail problem.
Thanks for your help.

Quote Reply
Re: error but every thing works In reply to
Check your error log.

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: error but every thing works In reply to
I don't have access to the server logs on this server only the visitor logs. I do have access to ssh command line though have have not set it up. Running the add cgi from the command line might tell me something. I switched it over to smtp and it works ok without errors. But I know the problem is not the server sendmail since other programs I am using sendmail on work. So the problem has to be the links sendmail send code and my servers sendmail config.

Quote Reply
Re: error but every thing works In reply to
You may have to add switches in the SENDMAIL path in order for the MAILER.pm file to execute properly.

Try using $db_mail_path = '/usr/bin/sendmail -t';.

of course, change the SENDMAIL path to your SENDMAIL path.

Regards,

Eliot Lee
Quote Reply
Re: error but every thing works In reply to
Elliot you are right, that was exactly what was wrong. I already figured this out my self before I came back and saw your message thanks for the help.

Quote Reply
Re: error but every thing works In reply to
You're welcome.

Regards,

Eliot Lee
Quote Reply
Re: error but every thing works In reply to
I changed my sendmail to -t switch and it worked without errors two times ok and then started showing errors again. I have checked every thing out and the error seems to be the fact that the program does not send an email to the administrator that links are waiting to be validated. All other emails are sent. Where would I investigate this problem? The two times it worked it did send an email to the admin and then quit doing it. I also noticed in mailer.pm it adds the switch -t automatically and also adds a switch -oeq, what is that all about, could this be the problem? I checked my dead letter file and this is where all the emails are going.

Quote Reply
Re: error but every thing works In reply to
Before you start altering the script you should contact your host or read their faq to get the correct path to Sendmail.

Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

Quote Reply
Re: error but every thing works In reply to
The path to send mail is the normal unix /usr/sbin/sendmail.
I was running a php info program on my sql server and lo and behold it gave this info about the sendmail setup
/usr/sbin/sendmail -t -i, I guess on this server you must have both of those switches for sendmail to work, does anyone know what the -i switch is?