Invalid WSGIDaemonProcess Command Deploying a Django Application on CentOS 6.7

I am using Django 1.8 on CentOS 6.7 with Apache . Server Version: Apache / 2.2.15 (Unix).

I followed the steps in How to Serve Django Applications with Apache and mod_wsgi on CentOS 7. But in the last step, when I start the Apache server with the command: service httpd startinstead of systemctl start httpdbeacuse, I have Centos 6.7 and not CentOS 7 according to the tutorial.

It produces the following error:

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

you can check django.conf here:

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

Thanks in advance. Offer any other deployment option on CentOS 6.7 with djnago 1.8 .

+4
2

mod_wsgi Apache. , /etc/apache2/mods-enabled/, wsgi.conf wsgi.load /etc/apache2/mods-available/.

mod_wsgi, wsgi, mod_wsgi-express ( httpd).

+3

, wsgi,

sudo a2enmod wsgi

,

python2

sudo apt-get install python-pip apache2 libapache2-mod-wsgi

python3

sudo apt-get install python3-pip apache2 libapache2-mod-wsgi-py3
+2

Source: https://habr.com/ru/post/1613032/


All Articles