psp (python server pages) code under mod_wsgi?

…衆ロ難τιáo~ 提交于 2019-12-11 00:24:18

问题


Is there some way to run .psp (python server pages) code under apache + mod_wsgi? While we are moving towards newer wsgi based frameworks we still have some legacy code written in psp which runs under mod_python.

We'd like to be able to run it on the same server that hosts other wsgi based python code. In short - is there a way to support psp under mod_wsgi? Or are there any other tricks to at least allow mod_wsgi and mod_python to play nice in the same server?

-S


回答1:


No, there is no port of mod_python PSP for mod_wsgi.

Yes, you can run mod_python and mod_wsgi on same server so long as both use same version of Python and both link dynamically with Python library. See:

http://code.google.com/p/modwsgi/wiki/InstallationIssues

It isn't recommended to run both together though as mod_wsgi then gets afflicted by the memory leaks due to mod_python, plus some other configurability in mod_wsgi is restricted due to mod_python controlling Python interpreter initialisation.



来源:https://stackoverflow.com/questions/2143915/psp-python-server-pages-code-under-mod-wsgi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!