mwoodxray
01-28-2003, 02:55 PM
OK, I've been fighting this for over a week. I give up! HELP!!!
Trying to use formmail.pl. Copied it to public_html/cgi-bin. I changed only the following:
!/usr/bin/perl
$mailprog = '/usr/sbin/sendmail -i -t';
@referers = ('mountainxray.com,216.120.236.154');
@recipients = ('^mitch\@mountainxray\.com);
I have a very simple form at public_html/simpleform.htm.
It is as follows:
<html>
<head>
<title>Simple Form</title>
<meta name="generator" content="Namo WebEditor v4.0">
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p>Simple Form</p>
<form name="form1" method="post" action="cgi-bin/FormMail.pl">
<input type=hidden name="recipient" value="mitch@mountainxray.com">
<input type=hidden name="redirect" value="http://www.mountainxray.com/Thankyou.htm">
<p>Name:<input type="text" value="Name" maxlength="20" size="20"></p>
<p>Time of test: <input type="text" value="Time" maxlength="4" size="4"></p>
<p><input type="submit" value="SUBMIT"></p>
</form>
<p> </p>
</body>
</html>
If I run it at cgi-sys, it works somewhat,(I get redirected and the email I get shows only where I was redirected to) but at public_html/cgi-bin/FormMail.pl 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, webmaster@mountainxray.com 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.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/1.3.27 Server at www.mountainxray.com Port 80
I checked the error log and the only thing I see is pointing to a permissions error from earlier today and not have it set to 755.
Trying to use formmail.pl. Copied it to public_html/cgi-bin. I changed only the following:
!/usr/bin/perl
$mailprog = '/usr/sbin/sendmail -i -t';
@referers = ('mountainxray.com,216.120.236.154');
@recipients = ('^mitch\@mountainxray\.com);
I have a very simple form at public_html/simpleform.htm.
It is as follows:
<html>
<head>
<title>Simple Form</title>
<meta name="generator" content="Namo WebEditor v4.0">
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p>Simple Form</p>
<form name="form1" method="post" action="cgi-bin/FormMail.pl">
<input type=hidden name="recipient" value="mitch@mountainxray.com">
<input type=hidden name="redirect" value="http://www.mountainxray.com/Thankyou.htm">
<p>Name:<input type="text" value="Name" maxlength="20" size="20"></p>
<p>Time of test: <input type="text" value="Time" maxlength="4" size="4"></p>
<p><input type="submit" value="SUBMIT"></p>
</form>
<p> </p>
</body>
</html>
If I run it at cgi-sys, it works somewhat,(I get redirected and the email I get shows only where I was redirected to) but at public_html/cgi-bin/FormMail.pl 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, webmaster@mountainxray.com 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.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/1.3.27 Server at www.mountainxray.com Port 80
I checked the error log and the only thing I see is pointing to a permissions error from earlier today and not have it set to 755.