Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Bo Lind 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?
-
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?
-
You need to set the permissions
# chmod 755 formmail.cgi
Jon
-
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
-
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 :)
-
Thanks, It worked! :)
-
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.
-
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