Apache - Python没有执行

时间:2015-11-20 18:36:08

标签: python apache

我很难让Python在我的Apache Web服务器上执行。

我的文件看起来像这样

#! /usr/bin/python2.6
# enable debugging
import cgitb
cgitb.enable()

print "Content-Type: text/plain\r\n\r\n"
print "Hello World!"

我在http.conf

中启用了CGI执行权限和Python addHandler权限

Apache完全按照您的意思提供服务。

有什么想法吗?

0 个答案:

没有答案