Как исправить? Ошибка 500: Не вызван процесс демона WSGI... (Apache/ Django)

У меня внутренняя ошибка сервера 500 на моем Django Server. Когда я проверяю error.log, я получаю следующую ошибку:

No WSGI daemon process called "..." has been configured: "..."

Надеюсь, кто-нибудь сможет помочь мне исправить эту ошибку.

Вот моя конфигурация Apache:

<VirtualHost *:80>

        ServerAdmin ADMIN
        ServerName DOMAIN   

        ErrorLog /home/USER/PROJECT/site/logs/error.log
        CustomLog /home/PROJECT/PROJECT/site/logs/access.log combined

        Alias /static /home/USER/PROJECT/static
        <Directory /home/USER/PROJECT/static>
                Require all granted
        </Directory>

        <Directory /home/USER/PROJECT/src/social>
                <Files wsgi.py>
                        Require all granted
                </Files>
        </Directory>

        WSGIDaemonProcess PROJECT python-path=/home/USER/PROJECT/ python-home=/home/USER/PROJECT/VIRTUALENV
        WSGIProcessGroup PROJECT
        WSGIScriptAlias / /home/USER/PROJECT/src/social/wsgi.py

</VirtualHost>

переместите путь к проекту из /home/USER/PROJECT в /var/www/PROJECT

убедитесь, что вы chmod папку проекта --> sudo chmod -R 777 /project

если не работает дайте ваш email мне для контакта

<VirtualHost *:80>
# edit all /home/USER/PROJECT to /var/www/PROJECT

        ServerAdmin ADMIN
        ServerName DOMAIN   

        ErrorLog /home/USER/PROJECT/site/logs/error.log
        CustomLog /home/PROJECT/PROJECT/site/logs/access.log combined

        Alias /static /home/USER/PROJECT/static
        <Directory /home/USER/PROJECT/static>
                Require all granted
        </Directory>

        <Directory /home/USER/PROJECT/src/social> # here put path of where wsgi.py existing folder
                <Files wsgi.py>
                        Require all granted
                </Files>
        </Directory>

        WSGIDaemonProcess PROJECT python-path=/home/USER/PROJECT/ python-home=/home/USER/PROJECT/VIRTUALENV
        WSGIProcessGroup PROJECT
        WSGIScriptAlias / /home/USER/PROJECT/src/social/wsgi.py

</VirtualHost>
Вернуться на верх