Koozali.org: home of the SME Server

formmail.cgi

Bo Lind

formmail.cgi
« on: July 16, 2002, 11:37:26 PM »
Hi. I've been trying to set up a formmail but i've run into some sort of problem. the formmail i'm trying to use is the free one from http://www.scriptarchive.com/ with the following Variables:
#!/usr/bin/perl
$mailprog = '/usr/lib/sendmail -i -t';

When trying to use it i get this error:

"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@xxx.xx and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log."

the server error log:

[error] (13)Permission denied: exec of /home/e-smith/files/primary/cgi-bin/formmail.cgi failed
[error] [client xxx.xxx.xxx.xxx] Premature end of script headers: /home/e-smith/files/primary/cgi-bin/formmail.cgi

Anybody know what to do about this?

Gerry Shields

Re: formmail.cgi
« Reply #1 on: July 17, 2002, 07:02:33 AM »
I'm away to play with the permissions to try and sort this however i can't find any confirmation trhat this is the correct path for the perl and sendmail libraries.. anyone know?

Jon Blakely

Re: formmail.cgi
« Reply #2 on: July 17, 2002, 08:18:56 AM »
You need to set the permissions

# chmod 755 formmail.cgi

Jon

Bo Lind

Re: formmail.cgi
« Reply #3 on: July 17, 2002, 12:24:20 PM »
Thanks Jon,

Now this might not belong in this forum, since  i surpose it's a newbie question - but how do I go along and set that permission?

Bo

Jon

Re: formmail.cgi
« Reply #4 on: July 17, 2002, 12:38:17 PM »
Use putty to access the server remotely
or at the console hit alt F2

Navigate to where the file is (an easy way to do this is to use midnight commander, just type mc and hit enter then navigate your way)

Then when you can see the file, type what the other Jon said.
chmod 755 formmail.cgi

I dont think you have to many worries asking newbie questions here.

Good luck

Jon
(the better looking one LOL :)

Bo Lind

Re: formmail.cgi
« Reply #5 on: July 17, 2002, 01:21:15 PM »
Thanks, It worked! :)

Dennis Johansen

Re: formmail.cgi
« Reply #6 on: July 31, 2003, 11:36:31 AM »
Hi there,

Could anyone please send me a copy of an working formmail.pl script?

I can't get my script to wotk on my SME 5.6

Thanks in advance.

Guck Puppy

Re: formmail.cgi
« Reply #7 on: July 31, 2003, 09:54:20 PM »
Why not use a php version of Formmail? There are many available.

http://freshmeat.net/search/?q=formmail§ion=projects&x=0&y=0

Personally, I use http://nutbar.chemlab.org/news/?id=1046844858

G