【发布时间】:2016-01-24 02:02:22
【问题描述】:
我在 CentOS 6.7 上使用 Django 1.8 和 Apache 服务器版本:Apache/2.2.15 (Unix)。
我已按照How To Serve Django Applications with Apache and mod_wsgi on CentOS 7. 中的步骤进行操作
但在最后一步,当我使用命令启动 Apache 服务器时:service httpd start 而不是 systemctl start httpd 因为根据教程我有 Centos 6.7 而不是 CentOS 7。
出现以下错误:
Starting httpd: Syntax error on line 10 of /etc/httpd/conf.d/django.conf:
Invalid command 'WSGIDaemonProcess', perhaps misspelled or defined by a module ot included in the server configuration
你可以在这里查看 django.conf:
Alias /static /home/ftpispy/ispy/static
<Directory /home/ftpispy/ispy/static>
Require all granted
</Directory>
<Directory /home/ftpispy/ispy/ispy>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIDaemonProcess ispy python-path=/home/ftpispy/ispy:/home/ftpispy/ispy/venv/lib/python2.7/site-packages
WSGIProcessGroup ispy
WSGIScriptAlias / /home/ftpispy/ispy/ispy/wsgi.py
在此先感谢您。请建议任何其他选项以在 CentOS 6.7 上使用 djnago 1.8 进行部署。
【问题讨论】:
标签: python django apache centos6