我的环境是server2003,apache2.2已经安装好了并已经运行。
首先下载软件:
python:http://www.python.org,给最新下载页面http://www.python.org/download/releases/2.5.2/
mod_python:http://apache.mirror.phpchina.com/httpd/modpython/win/3.3.1/(严重注意版本,python对版本要求很严格,请务必下载符合你需要的版本)
第一步:安装python,这步没有什么难度,一路下一步就可以了。
第二步:安装mod_python,我下载的文件是mod_python-3.3.1.win32-py2.5-Apache2.2.exe,一路下一步。注意最后一步选择apache安装目录,请选择apache2.2的目录,一定要选择到apache2.2,不然mod不能正确生成到modules,如果第一次没有正确请重新运行安装mod_python即可。
安装完成后出现以下信息,表示安装完成:
Important Note for Windows users, PLEASE READ!!!
1. This script does not attempt to modify Apache configuration,
you must do it manually:
Edit D:/program files/Apache Software Foundation/Apache2.2confhttpd.conf,
find where other LoadModule lines are and add this:
LoadModule python_module modules/mod_python.so
2. Now test your installation using the instructions at this link: