mailform not working

tuba

Verified User
Joined
Nov 14, 2003
Messages
8
I have had a mailform in a cgi-bin working on one of my websites now for over a year, but within the last few days it has stopped working and I get the following message:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] 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.33 Server at www.thecottagekenilworth.co.uk Port 80



I have checked the permissions of mailform and set at 755, i have also uploaded the mailform code again just incase it had got corrupted but non of these fix the problem.

anyone got any ideas.

form is at:

http://www.thecottagekenilworth.co.uk/form.htm

The error log gives this:

fopen: Permission denied
[Mon Dec 6 18:43:26 2004] [error] [client 81.26.101.45] Premature end of script headers: /home/ilsley/domains/thecottagekenilworth.co.uk/public_html/cgi-bin/mailform.pl
[Mon Dec 6 18:43:26 2004] [error] [client 81.26.101.45] File does not exist: /home/ilsley/domains/thecottagekenilworth.co.uk/public_html/500.shtml
[Mon Dec 6 18:44:10 2004] [error] [client 81.26.101.45] Premature end of script headers: /home/ilsley/domains/thecottagekenilworth.co.uk/public_html/cgi-bin/mailform.pl
[Mon Dec 6 18:44:10 2004] [error] [client 81.26.101.45] File does not exist: /home/ilsley/domains/thecottagekenilworth.co.uk/public_html/500.shtml
 
Forget about the "File does not exist" errors; those are just to let you know there aren't any default error pages.

As for the "Premature end of script headers"; that often means the script is in DOS line ending format rather than in Unix line ending format.

Check to see.

If the file is in the wrong format you can fix it with the dos2unix command, if your server includes it.

Jeff
 
Back
Top