歡迎您光臨本站 註冊首頁

apache + mod_python配置出錯求助

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

apache + mod_python配置出錯求助

按照
http://www.djangoproject.com/documentation/modpython/
配置

<Location "/django/">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE djangotest.settings
    PythonOption django.root /djangotest
    PythonDebug On
</Location>

啟動Apache 報這個錯:
Invalid command 'PythonHandler',perhaps misspelled or defined by a module not included in the server configuration
《解決方案》

載入了模塊了嗎?

LoadModule python_module modules/mod_python.so
《解決方案》

modules下面沒有mod_python.so啊
教程上也沒有提到..

[ 本帖最後由 realmon 於 2008-9-1 19:55 編輯 ]
《解決方案》

原帖由 xi2008wang 於 2008-9-1 01:15 發表 http://bbs.chinaunix.net/images/common/back.gif
載入了模塊了嗎?

LoadModule python_module modules/mod_python.so

原來是mod_python沒裝好,沒有在apache下生成mod_python.so
:shock: :shock: :shock: :shock:
重新生成就OK了,多謝!
《解決方案》

可以去py版,有我發的帖子

[火星人 ] apache + mod_python配置出錯求助已經有102次圍觀

http://coctec.com/docs/service/show-post-27838.html