Python script does not run through CGI on Apache2
问题 I am using apache2 version Apache/2.4.23 I created a simple python script that I want executed via CGI. The script does not execute when I open http://localhost/cgi-bin/hello.py. Instead, I just see the python code in the script: The script looks like so: #!/usr/local/bin/python print "Python ok!" The rights on the script are set to -rwxr-xr-x (755). This python script resides in /Library/WebServer/CGI-Executables/ . I have configured the ScriptAlias in my httpd.conf like so: ... ScriptAlias