Search Postgresql Archives

Re: postgres connection problem via python pg DBI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just solved it.  

 

For others, here is the solution.  

 

setsebool -P httpd_can_network_connect_db 1

 

From: pgsql-general-owner@xxxxxxxxxxxxxx
[mailto:pgsql-general-owner@xxxxxxxxxxxxxx] On Behalf Of Dan Joo
Sent: Thursday, June 05, 2008 4:18 PM
To: pgsql-general@xxxxxxxxxxxxxx
Subject: [GENERAL] postgres connection problem via python pg DBI

 

Hi all,

 

I have a problem connecting to postgres via the python pg module ONLY
from the cgi-scripts.

 

The command is:

 

db=pg.connect('aqdev','localhost',5432,None,None,'postgres',None)

 


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux