Question
Postgresql and apache2 mod_wsgi
I've done this set up a 1000 times, new to digitalocean... I've set up a server with Django/posgresql/apache/mod_wsgi... I use pyscopg2 to connect to postgresql from django. Everything works fine execept I can't connect to postgresql when running under apache/mod_wsgi. I've been successful at running django app server and connecting to app locally with lynx. So issue is isolated to mod_wsgi... I have no idea why I can't connect I'm assuming it's permission to access postgresql socket ... but not sure... postgresql socket resides in /tmp.
Add a comment
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×