Questions tagged «mod-python»

5
为什么我得到错误的无效命令“ PythonHandler”?
我正在尝试部署Django应用程序,但遇到了麻烦。到目前为止,在Debian(最新)上,我已经运行了以下命令: apt-get install apache2 apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-python python-django 我尝试过在Apache 2的配置文件中手动添加模块,但是老实说我完全迷失了。它与我几年前使用的Apache版本1完全不同。 Syntax error on line 7 of /etc/apache2/sites-enabled/000-default: Invalid command 'PythonHandler', perhaps misspelled or defined by a module not included in the server configuration 我sites-available/default在标签之间的文件中添加了以下内容。 <Location "/"> SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE hellodjango1.settings PythonDebug Off </Location> 这是我到目前为止使用的教程,运气不好: …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.