This message has been poster into the General e-mail message board too.
I am hoping that you can help me. I am having trouble with the FormMail script for <www.foresight-ifp.co.uk>. I am receiving no in-browser errors but if I check the Error log in the CPanel I can see there are issues.
1. Can you please inform me if the following location for the cgi-bin directory is correct? <http://www.foresight-ifp.co.uk/cgi-bin/FormMail.pl>. On the FTP server the website and CGI directory are located in public_html.
If I browse to <http://www.foresight-ifp.co.uk/cgi-bin/FormMail.pl> I get the following message:
Error: GET request
The HTML form fails to specify the POST method, so it would not be correct for this script to take any action in response to your request.
If you are attempting to configure this form to run with FormMail, you need to set the request method to POST in the opening form tag, like this: <form action="/cgi-bin/FormMail.pl" method="post">
2. I have checked my HTML page and the FORM ACTION appears to be correct:
<FORM ACTION="http://www.foresight-ifp.co.uk/cgi-bin/FormMail.pl" METHOD="post">
Can you see any problems with this?
3. Permissions for all files is set to 755 as recommended.
4. This is your error log. I presume the favicon.ico error isn't related to the form error. Please confirm:
[Wed Aug 8 10:53:09 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
[Wed Aug 8 10:52:40 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
[Wed Aug 8 10:50:31 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
[Wed Aug 8 10:49:40 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
[Wed Aug 8 10:47:59 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
[Wed Aug 8 10:46:49 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
[Wed Aug 8 10:46:43 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/public_html/cgi-bin/FormMail.pl
[Wed Aug 8 10:46:37 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/foresigh/public_html/cgi-bin/FormMail.pl
[Wed Aug 8 10:44:00 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
[Wed Aug 8 10:40:08 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
[Wed Aug 8 10:39:58 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
[Wed Aug 8 10:37:06 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
[Wed Aug 8 10:36:55 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
[Wed Aug 8 10:36:00 2007] [error] [client 212.103.239.157] script not found or unable to stat: /data01/foresigh/public_html/cgi-bin/FormMail.pl
[Wed Aug 8 10:35:44 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
[Wed Aug 8 10:35:40 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
[Wed Aug 8 10:25:13 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
[Wed Aug 8 10:25:02 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
[Wed Aug 8 10:23:27 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
[Wed Aug 8 10:23:27 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/500.shtml
[Wed Aug 8 10:23:27 2007] [error] [client 212.103.239.157] Premature end of script headers: /data01/foresigh/public_html/cgi-bin/FormMail.pl
[Wed Aug 8 10:23:10 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
[Wed Aug 8 10:21:20 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
[Wed Aug 8 10:21:18 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
[Wed Aug 8 10:09:22 2007] [error] [client 217.45.133.145] File does not exist: /data01/foresigh/public_html/favicon.ico
5. As a long shot can you please tell me the path to your sendmail? I am trying to troubleshoot the $mailprog variable in FormMail.pl.
The default setting for the for the FormMail.pl is: /usr/lib/sendmail -oi -t
Can you tell me if this is correct?
If your web server lacks a sendmail binary, please let me know what the IP address is of your SMTP server configured to relay mail.
Thanks!
Andrew