Invalid command 'PythonPath' 错误

昨天安装apache 和mod_python开发环境,都安装好之后发现启动不起来。

查询系统日志后发现提示如下:

 

The Apache service named  reported the following error:
>>> Invalid command 'PythonPath', perhaps misspelled or defined by a module not included in the server configuration     .

 

 

经过多方查找原因及验证,发现问题所在:

缺了一句话:

LoadModule python_module modules/mod_python.so

 

原文提示如下:

Scroll down and look for a section that includes a bunch of lines that start with LoadModule. Add the following line to that section:

LoadModule python_module modules/mod_python.so

找到以LoadModule 开头的章节,把上面那句话添加上去就ok了。

你可能感兴趣的:(apache,python)