Skip site navigation (1) Skip section navigation (2)

Re: Undefined function pg_connect()

From: Raymond O'Donnell <rod(at)iol(dot)ie>
To: Gustavo Amarilla Santacruz <gusamasan(at)gmail(dot)com>
Cc: Chris <dmagick(at)gmail(dot)com>, Bill Moran <wmoran(at)potentialtech(dot)com>, pgsql-php(at)postgresql(dot)org
Subject: Re: Undefined function pg_connect()
Date: 2010-01-30 12:53:11
Message-ID: 4B642BB7.80907@iol.ie (view raw or flat)
Thread:
Lists: pgsql-php
On 30/01/2010 12:33, Gustavo Amarilla Santacruz wrote:
> "Warning: pg_connect(): Unable to connect to PostgreSQL server: could
> not connect to server: Permission denied Is the server running on host
> "localhost" and accepting TCP/IP connections on port 5432? could not
> connect to server: Permission denied Is the server running on host
> "localhost" and accepting TCP/IP connections on port 5432?"
> 
> 
> 
> 
> The pg_hba.conf file containt:
> 



Sounds like you're getting somewhere - the PG extension is being found now.

The error above is nothing to do with pg_hba.conf; if the connection was
being denied because of a rule there, the error would say so explicitly.
Rather, it's a network problem of some kind. Is the server actually
running? Is there a firewall preventing access?

Ray.

-- 
Raymond O'Donnell :: Galway :: Ireland
rod(at)iol(dot)ie

In response to

pgsql-php by date

Next:From: ChrisDate: 2010-01-31 22:21:53
Subject: Re: Undefined function pg_connect()
Previous:From: Gustavo Amarilla SantacruzDate: 2010-01-30 12:33:24
Subject: Re: Undefined function pg_connect()

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group