当我启动 Apache 时出现以下错误:
[Tue Jun 14 02:28:58 2011] [error] python_init: Python version mismatch, expected '2.6.5', found '2.6.6'.
[Tue Jun 14 02:28:58 2011] [error] python_init: Python executable found '/usr/bin/python'.
[Tue Jun 14 02:28:58 2011] [error] python_init: Python path being used '/usr/lib/python2.6/:/usr/lib/python2.6/plat-linux2:/usr/lib/python2.6/lib-tk:/usr/lib/python2.6/lib-old:/usr/lib/python2.6/lib-dynload'.
[Tue Jun 14 02:28:58 2011] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Tue Jun 14 02:28:58 2011] [notice] mod_python: using mutex_directory /tmp
[Tue Jun 14 02:28:58 2011] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.5 with Suhosin-Patch mod_python/3.3.1 Python/2.6.6 configured -- resuming normal operations
我正在使用 Ubuntu 服务器...
在此先感谢您的帮助。
答案1
根据适当的 Python 版本构建 mod_python。更好的办法是,彻底放弃现已停用的 mod_python,改用 mod_wsgi。