I’m having problems running a CGI via the web. I made a simple test case.
I have a file called “test.cgi” with the following contents:
#!/bin/sh
echo Content-Type: text/plain
echo
echo IT WORKS
If I type “sh < test.cgi”, it works.
However if I try via the web (i.e. www.mydomain.com/test.cgi) I get the error listed below.
Any suggestions?
Thanks.
-Lars
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@mydomain.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.