Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 549C72E005E for ; Mon, 9 Jun 2008 17:50:24 -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 50516-07 for ; Mon, 9 Jun 2008 17:50:16 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.191]) by developer.postgresql.org (Postfix) with ESMTP id 698F12E0035 for ; Mon, 9 Jun 2008 17:50:17 -0300 (ADT) Received: by gv-out-0910.google.com with SMTP id i36so594782gve.7 for ; Mon, 09 Jun 2008 13:50:16 -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=fMhHMdoFTyxE7WCsjBW2AFnOdAiRvfhRZSXrq8rA1K0=; b=Hd3XW5hMRW9akn02SnUMhGv/C1RTNwPXnro+N7VfSjcghndPGYJi8sw4PjfDlAJAX4 1udG5arvv3G8LXdUBbJ95VVelR2q4Md0OVIMV79eMtyQnJJbzuIVb6pdhKnI+qfAe9Vg SIYVzZNZ/aoClu5Qf/q+NVScTFk1spMO2fKq0= 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=oulaTpliBCET6+ANLelpuwpjUyYzxVDQnQLiD3zYOIhKt0BeIfZcdly1y9kuYq7eD2 AprzOFY+e8H0g02jyMXfroFGoBIC5Ip2/kRjDGrwMZyOzy1BdhIT9xf8ail4zlJOUJaD Oeg9zT+Zo6E9CvYGf9g4jyn6/FdbViloSZjxA= Received: by 10.78.198.14 with SMTP id v14mr2194521huf.115.1213044615572; Mon, 09 Jun 2008 13:50:15 -0700 (PDT) Received: by 10.78.149.5 with HTTP; Mon, 9 Jun 2008 13:50:15 -0700 (PDT) Message-ID: Date: Mon, 9 Jun 2008 22:50:15 +0200 From: "Carlos Costa" To: "Daniel Alejandro" Subject: Re: Problems connecting (from php to pg) Cc: pgsql-php@postgresql.org In-Reply-To: <5887d1f40806091317k12a32baneb248b73d103b0c7@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5887d1f40806091317k12a32baneb248b73d103b0c7@mail.gmail.com> 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/3 X-Sequence-Number: 3850 Thank you, Daniel and all. My problem was not related to pg, but to selinux. I disabled selinux, and all runs fine now. On Mon, Jun 9, 2008 at 10:17 PM, Daniel Alejandro wrote: > 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 >