I have am trying from last three days to configure simple django application on my vps using plesk with centos 8 , and its been very frustrated to do it. I am receiving passenger_wsgi.py error . I have followed this tutorial How to allow installing and install Django applications? and this How to set up Django Hosting on the latest Plesk Onyx both worked out in centos 7 but not in 8.
This is my server logs
20020-10-22 17:35:17Error162.158.165.79500GET / HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36 4.53 KApache access
2020-10-22 17:45:44Error162.158.166.232500GET / HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36 4.53 K Apache access
2020-10-22 17:45:45Error162.158.166.154500GET / HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36 4.53 Apache access
Error ID:6cd697b9 Details:Web application could not be started by the Phusion Passenger application server.
Its because of internal server error but how to resolve this ?
I have am trying from last three days to configure simple django application on my vps using plesk with centos 8 , and its been very frustrated to do it. I am receiving passenger_wsgi.py error . I have followed this tutorial How to allow installing and install Django applications? and this How to set up Django Hosting on the latest Plesk Onyx both worked out in centos 7 but not in 8.
This is my server logs
20020-10-22 17:35:17Error162.158.165.79500GET / HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36 4.53 KApache access 2020-10-22 17:45:44Error162.158.166.232500GET / HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36 4.53 K Apache access 2020-10-22 17:45:45Error162.158.166.154500GET / HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36 4.53 Apache access
Error ID:6cd697b9 Details:Web application could not be started by the Phusion Passenger application server.
Its because of internal server error but how to resolve this ?
this is the passenger_wsgi.py file
import sys, os ApplicationDirectory = 'tayyab' ApplicationName = 'djangoProject' VirtualEnvDirectory = 'venv' VirtualEnv = os.path.join(os.getcwd(), VirtualEnvDirectory, 'bin', 'python') if sys.executable != VirtualEnv: os.execl(VirtualEnv, VirtualEnv, *sys.argv) sys.path.insert(0, os.path.join(os.getcwd(), ApplicationDirectory)) sys.path.insert(0, os.path.join(os.getcwd(), ApplicationDirectory, ApplicationName)) sys.path.insert(0, os.path.join(os.getcwd(), VirtualEnvDirectory, 'bin')) os.chdir(os.path.join(os.getcwd(), ApplicationDirectory)) os.environ.setdefault('DJANGO_SETTINGS_MODULE', ApplicationName + '.settings') from django.core.wsgi import get_wsgi_application application = get_wsgi_application()
root directory structure
tayyab -- main folder -- djangoProject -- Sub folder inside tayyab passenger_wsgi.py on the root venv on the root