I set up a python web server by opening a terminal in a directory and doing
python -m CGIHTTPServer
There is a CGI script in the directory but when I type into the browser
localhost:8000/script.cgi
The CGI script is not executed but is downloaded instead. I chmod'ed the script to 755 but still the same. What am I doing wrong?