Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id C07D6632B0F for ; Sat, 30 Jan 2010 08:53:25 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 10687-01 for ; Sat, 30 Jan 2010 12:53:07 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail1.hosting.digiweb.ie (mail1.hosting.digiweb.ie [89.234.64.49]) by mail.postgresql.org (Postfix) with SMTP id 94043632A4C for ; Sat, 30 Jan 2010 08:53:14 -0400 (AST) Received: (qmail 31819 invoked by uid 399); 30 Jan 2010 12:53:11 -0000 Received: from unknown (HELO ?127.0.0.1?) (109.78.87.35) by mail1.hosting.digiweb.ie with ESMTP; 30 Jan 2010 12:53:11 -0000 X-Originating-IP: 109.78.87.35 Message-ID: <4B642BB7.80907@iol.ie> Date: Sat, 30 Jan 2010 12:53:11 +0000 From: Raymond O'Donnell Reply-To: rod@iol.ie User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1 MIME-Version: 1.0 To: Gustavo Amarilla Santacruz CC: Chris , Bill Moran , pgsql-php@postgresql.org Subject: Re: Undefined function pg_connect() References: <4B60DC23.9020404@gmail.com> <20100128084415.4d98823a.wmoran@potentialtech.com> <4B62236F.1090200@gmail.com> In-Reply-To: X-Enigmail-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 100130-0, 30/01/2010), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.184 tagged_above=-10 required=5 tests=AWL=-0.185, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 201001/21 X-Sequence-Number: 4119 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@iol.ie