OperationalError at /
could not connect to server: Permission denied
Is the server running on host "192.168.253.172" and accepting
TCP/IP connections on port 5432?
Request Method: GET
Request URL:
http://192.168.253.172/
Django Version: 1.5
Exception Type: OperationalError
Exception Value:
could not connect to server: Permission denied
Is the server running on host "192.168.253.172" and accepting
TCP/IP connections on port 5432?
Exception Location: /usr/lib/python2.6/site-packages/django/db/backends/postgresql_psycopg2/base.py in _cursor, line 182
Python Executable: /usr/bin/python
Python Version: 2.6.6
Python Path:
['/usr/lib/python26.zip',
'/usr/lib/python2.6',
'/usr/lib/python2.6/plat-linux2',
'/usr/lib/python2.6/lib-tk',
'/usr/lib/python2.6/lib-old',
'/usr/lib/python2.6/lib-dynload',
'/usr/lib/python2.6/site-packages',
'/usr/lib/python2.6/site-packages/gst-0.10',
'/usr/lib/python2.6/site-packages/gtk-2.0',
'/usr/lib/python2.6/site-packages/webkit-1.0',
'/var/www/django/',
'/var/www/django/project_django']
Server time: Mon, 11 Mar 2013 01:54:43 -0500
ปัญหาการเชื่อมต่อระหว่าง django และ postgresql เมื่อรันผ่าน service httpd บน CentOS
could not connect to server: Permission denied
Is the server running on host "192.168.253.172" and accepting
TCP/IP connections on port 5432?
Request Method: GET
Request URL: http://192.168.253.172/
Django Version: 1.5
Exception Type: OperationalError
Exception Value:
could not connect to server: Permission denied
Is the server running on host "192.168.253.172" and accepting
TCP/IP connections on port 5432?
Exception Location: /usr/lib/python2.6/site-packages/django/db/backends/postgresql_psycopg2/base.py in _cursor, line 182
Python Executable: /usr/bin/python
Python Version: 2.6.6
Python Path:
['/usr/lib/python26.zip',
'/usr/lib/python2.6',
'/usr/lib/python2.6/plat-linux2',
'/usr/lib/python2.6/lib-tk',
'/usr/lib/python2.6/lib-old',
'/usr/lib/python2.6/lib-dynload',
'/usr/lib/python2.6/site-packages',
'/usr/lib/python2.6/site-packages/gst-0.10',
'/usr/lib/python2.6/site-packages/gtk-2.0',
'/usr/lib/python2.6/site-packages/webkit-1.0',
'/var/www/django/',
'/var/www/django/project_django']
Server time: Mon, 11 Mar 2013 01:54:43 -0500