Search Postgresql Archives

Re: postgres connection problem via python pg DBI

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

 



Dan Joo wrote:
db=pg.connect('aqdev','localhost',5432,None,None,'postgres',None)

From the commandline the connection works great, but from a
cgi-script it barfs with the following message:

*InternalError*: could not create socket: Permission denied

My (obvious, granted) guess is that you're running it from the command line as your own user, but the web server is running under another user who doesn't have the proper permissions (or ident response) to access the database.

Colin


[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