我如何说wsgi apache的解释器版本 [英] How i say the interpreter version for wsgi apache

查看:148
本文介绍了我如何说wsgi apache的解释器版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在debian中,最近将python的默认版本从2.5改为2.6,但是我需要2.5,我如何配置apache和/或wsgi脚本来说它使用pythons2.5而不是python默认?

解决方案

您必须安装针对Python 2.5编译的mod_wsgi包二进制文件,或者从源代码编译mod_wsgi到Python 2.5版本。有关--with-python选项的说明,请参见:



http://code.google.com/p/modwsgi/wiki/QuickInstallationGuide#Configuring_The_Source_Code


In debian recently change de default version of python from 2.5 to 2.6 but i need 2.5, how i can configure apache and/or wsgi script to say it use pythons2.5 and not python default?

解决方案

You must install mod_wsgi package binary compiled against Python 2.5, or compile mod_wsgi from source code yourself against the Python 2.5 version. See notes about --with-python option in:

http://code.google.com/p/modwsgi/wiki/QuickInstallationGuide#Configuring_The_Source_Code

这篇关于我如何说wsgi apache的解释器版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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