开发者

How to run python scripts on your server?

I have mod_python installed on my server, but i开发者_JAVA百科f I want to acceses a python script - let's say httü://site.com/something.py the script doesn't run, the download box "pops up"

Any solutions?


I would consider a lightweight framework such as http://werkzeug.pocoo.org/ as it isn't very practical in the modern day to have CGI-style python scripts.

And I would use mod_wsgi instead of mod_python as the latter is a bit outdated.


This should be on ServerFault. By the way, mod_python is deprecated, use WSGI instead.


Is mod_py configured ok?
http://www.modpython.org/live/current/doc-html/inst-apacheconfig.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜