I'm configing formmail. FormMail has worked for like 829592348 million people. CHMOD is 755, it's in my cgi-bin...
But this happens when I try to submit. Er, well I get a server 500 error, but my log says:
[Tue Sep 21 15:08:38 2004] [error] [client **.***.***.***] Premature end of script headers: /home/*/public_html/*/cgi-bin/FormMail.pl
Any ideas?
If it helps at all, this particular script is being run in a subdomain of my site, which is redirected.
For instance, if the domain was www.banana.com, the subdomain would be long.banana.com, and the info for the subdomain would be located in www.banana.com/long, also, there is a masked redirect from www.long-banana.com.
So, the actual place of the file is in like banana.com/long/cgi-bin/SendMail.pl, but is being accessed from www.long-banana.com/cgi-bin/SendMail.pl
If you still have no joy, try editing it under Unix and saving it. That might help.
Matt
-------------
print "Content-type: text/html\n\n";
print "No boo boo!";
exit;
-------------
If that doesn't print then you have a permissions problem or some kind of problem with the file. If it DOES work then the problem is somewhere in your script. Move that group of three lines farther down in the file and then try to run the script. Keep repeating, moving the three lines farther and farther down in the script until you get the error. Then you'll know where the error is.