Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id A20722E0058 for ; Mon, 9 Jun 2008 17:17:32 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 14014-01 for ; Mon, 9 Jun 2008 17:17:26 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.229]) by developer.postgresql.org (Postfix) with ESMTP id 7A1A62E0035 for ; Mon, 9 Jun 2008 17:17:27 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so2694323rvf.43 for ; Mon, 09 Jun 2008 13:17:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=NmPyDVwtuYZQtQrZLuwkNpryewernnuq191xgQsRXh0=; b=htr3c5BrYLsnKyu11TjCl+JwDt3xdiG4+9gJE0RwF+b7CdazVyfm/wPy0hiW3X8RxM mZHdkR/o54il9aZKKAFLQuWB24vMpthu5MiRX42DJYEP+wdnrpPsxNSZAe1gTxkK3oZT oTMSPA2x12JWYYmVfkBLqDhSfYW4fucsBrKxo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=l0wovfHh6g4hJBmwatq4useb7GZDHMqJ41oM+6VQQu8gY9Aui8/HgBvc01fI5WNTgY agcG1HuzFr9Z9IHvBICLpxHv359avEUwWGl9g9+Jtqu18WIim7Y1FIf/gO66arIFAxmu 4rVfwj6LgiM1w03HCo2kklr68aH0o09MCWzNE= Received: by 10.141.145.11 with SMTP id x11mr2451914rvn.215.1213042646707; Mon, 09 Jun 2008 13:17:26 -0700 (PDT) Received: by 10.141.74.16 with HTTP; Mon, 9 Jun 2008 13:17:26 -0700 (PDT) Message-ID: <5887d1f40806091317k12a32baneb248b73d103b0c7@mail.gmail.com> Date: Mon, 9 Jun 2008 16:17:26 -0400 From: "Daniel Alejandro" To: "Carlos Costa" Subject: Re: Problems connecting (from php to pg) Cc: pgsql-php@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200806/2 X-Sequence-Number: 3849 2008/6/7 Carlos Costa : > Hello all, > > I've the "standard connection error": > > 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? > > The system is, yes, running and -I think- accepting TCP/IP connections > (I've tested this with netstat, I can connect to it with psql -h > localhost, and so). > > In the server where I am testing this I have FC7 installed, so the php > and the pgsql-php packages are: > > PHP Version 5.2.6 > PostgreSQL(libpq) Version 8.2.7 > > I think that there is a problem in the pgsql-php module. I've created > a ssh tunnel, and trying the connection to the same database from > other server (with PHP Version 5.2.5-3 and pgsql that supports > postgresql 8.3.0). > > The postgresql version in the server is the 8.3.0. > > What can we do? I am doing these tests with a simple php code (just a > pg_connect()). > > Thanks in advance, > Carlos. > > -- > Sent via pgsql-php mailing list (pgsql-php@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-php > Did you check your pg_hba.conf file ??? Bye :) -- Daniel Carrero Canales