I’m having problems getting a CGI script to work with python. If I run the following script (test.cgi), it works fine:
echo Content-Type: text/plain
echo IT WORKS
However if I try to use python (with the same file permissions)
causes an internal server error (below). Am I listing python correctly? This seems to be what the knowledgebase recommends.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, email@example.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.