【发布时间】:2014-07-13 00:48:19
【问题描述】:
我已经安装了 apache 2.4.4 的 wampserver
我已经安装了 python 并创建了一个测试文件:
#!/Python34/python
print "Content-type: text/html"
print
print "<html><head>"
print ""
print "</head><body>"
print "Hello."
print "</body></html>"
我想知道如何运行这个脚本?
【问题讨论】:
-
你的 httpd.conf 中有什么?
-
您是否安装并运行了 apache 扩展
mod_cgi? -
mod_cgi 存在并标记为 httpd.conf 我已按照本教程 editrocket.com/articles/python_apache_windows.html 进行操作,但它不起作用