Django Project deploy with Apache wsgi

Post Reply
JohnKhan
Posts: 3
Joined: Tue Feb 02, 2021 11:22 am

Hi @dpeca

I'm facing a problem during setup my Django Project with MyVESTACP with Apache WSGI.
I set up the environment by following this article. https://gitlab.com/neyder/vestacp-wsgi. everything configured correctly but Django not work. How to fix it ?

username: abcdxyz

"500 Internal Server Error"

Error Log: [wsgi:error] [pid 21927:tid 140504528307968] (13)Permission denied: [client ******:57725] mod_wsgi (pid=21927): Unable to connect to WSGI daemon process 'app-project.abcdxyz.com' on '/var/run/apache2/wsgi.21923.0.1.sock' as user with uid=33.

ls -l /var/run/apache2/wsgi.21923.0.1.sock
srwx------ 1 abcdxyz root 0 Mar 5 21:15 /var/run/apache2/wsgi.21923.0.1.sock


/home/abcdxyz/conf/web/app-project.abcdxyz.com.apache2.conf

<IfModule mod_wsgi.c>
WSGIDaemonProcess app-project.abcdxyz.com user=abcdxyz group=abcdxyz processes=1 threads=5 display-name=%{GROUP} python-home=/home/abcdxyz/web/app-project.abcdxyz.com/private/venv/ python-path=/home/abcdxyz/web/app-project.abcdxyz.com/private/app-project.abcdxyz.com socket-user=abcdxyz
WSGIProcessGroup app-project.abcdxyz.com
WSGIApplicationGroup %{GLOBAL}
WSGIScriptAlias / /home/abcdxyz/web/app-project.abcdxyz.com/private/app-project.abcdxyz.com/PROJECTAPP/wsgi.py process-group=app-pp-project.abcdxyz.com application-group=%{GLOBAL}
</IfModule>

Tags:
Post Reply