2006年08月04日 星期五 23:17
安装了libapache-mod-python2.4的包,按照 http://www.modpython.org/live/mod_python-2.7.8/doc-html/inst-testing.html 是按照上面的连接的步骤进行设置以及测试;AddHandler python-program .py PythonHandler mptest PythonDebug On 然后在 test目录下新建mptest.py文件,内容是 from mod_python import apache def handler(req): req.send_http_header() req.write("Hello World!") return apache.OK 在浏览器里打开时,说服务器内部错误,日志如下: make_obcallback(): could not import mod_python.apache. make_obcallback(): could not call init. [Fri Aug 4 22:57:18 2006] [error] [client 127.0.0.1] python_handler: make_obcallback returned no obCallBack! make_obcallback(): could not import mod_python.apache. make_obcallback(): could not call init. [Fri Aug 4 22:57:21 2006] [error] [client 127.0.0.1] python_handler: make_obcallback returned no obCallBack! 我在网上找了一下,但是没有找到解决办法。 附件是strace /usr/sbin/apache -X 2>error.log 的输出结果. 大家有没有碰到相同的情况阿? -------------- next part -------------- A non-text attachment was scrubbed... Name: error_log Type: application/octet-stream Size: 101648 bytes Desc: not available Url : http://lists.exoweb.net/pipermail/python-chinese/attachments/20060804/17469ad9/error_log-0001.obj
Zeuux © 2025
京ICP备05028076号