PSP(Python服务器页面)的代码在mod_wsgi下? [英] psp (python server pages) code under mod_wsgi?

查看:127
本文介绍了PSP(Python服务器页面)的代码在mod_wsgi下?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过某种方式在apache + mod_wsgi下运行.psp(Python服务器页面)代码?当我们朝着基于wsgi的新框架迈进时,我们仍然有一些用mod_python运行的psp编写的遗留代码.

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.

我们希望能够在托管其他基于wsgi的python代码的同一服务器上运行它.简而言之-是否有一种方法可以在mod_wsgi下支持PSP?还是有其他技巧至少可以允许mod_wsgi和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

推荐答案

否,没有用于mod_wsgi的mod_python PSP端口.

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

是的,您可以在同一服务器上运行mod_python和mod_wsgi,只要它们都使用相同版本的Python并且都与Python库动态链接即可.参见:

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

不建议同时运行这两种方法,因为mod_wsgi会由于mod_python而受到内存泄漏的困扰,另外由于mod_python控制Python解释器初始化,mod_wsgi中的其他可配置性受到限制.

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.

这篇关于PSP(Python服务器页面)的代码在mod_wsgi下?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆