How to setup DJANGO application on CyberPanel/OpenLiteSpeed

Salam Usman , I followed your steps trying to setup django app on cyberpanel openlitespeed and i am getting error 500 or error 503 , i had to use wsgi-lsapi-2.1 it could be a problem using different version ?

2023-06-12 21:18:23.015612 [NOTICE] [796] [94.187.0.57:4137#ejitelkahraba.com] No request delivery notification has been received from LSAPI application, possible dead lock.
2023-06-12 21:18:23.015661 [INFO] [796] [wsgi:ejitelkahraba.com:/]: locked pid file [/tmp/lshttpd/ejitelkahraba.com:_.sock.pid].
2023-06-12 21:18:23.015667 [INFO] [796] [wsgi:ejitelkahraba.com:/] remove unix socket for detached process: /tmp/lshttpd/ejitelkahraba.com:_.sock
2023-06-12 21:18:23.015729 [NOTICE] [796] [LocalWorker::workerExec] VHost:ejitelkahraba.com suExec check uid 65534 gid 65534 setuidmode 0.
2023-06-12 21:18:23.015746 [NOTICE] [796] [LocalWorker::workerExec] Config[wsgi:ejitelkahraba.com:/]: suExec uid 65534 gid 65534 cmd /usr/local/lsws/fcgi-bin/lswsgi -m /home/ejitelkahraba.com/public_html/poweron/poweron/wsgi.py, final uid 65534 gid 65534, flags: 0.
2023-06-12 21:18:23.015999 [NOTICE] [796] [wsgi:ejitelkahraba.com:/] add child process pid: 863
2023-06-12 21:18:23.016026 [INFO] [796] [wsgi:ejitelkahraba.com:/]: unlocked pid file [/tmp/lshttpd/ejitelkahraba.com:_.sock.pid].

the log could help what i have done wrong

I did the installation as described, but I get the following error.

500 - Internal Server Error

Can anyone help me?

Hello!

Havo you fixed your problem?

I’m facing the same issue here

Thank you

make sure you are using ubuntu 20.04 there is issue with 22.04 and 23.04
follow this blog

here is full tutorial