Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 1B68C2E003A for ; Sat, 7 Jun 2008 17:57:23 -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 29509-07 for ; Sat, 7 Jun 2008 17:57:17 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by developer.postgresql.org (Postfix) with ESMTP id 5ED712E0035 for ; Sat, 7 Jun 2008 17:57:20 -0300 (ADT) Received: by fg-out-1718.google.com with SMTP id 16so1164033fgg.23 for ; Sat, 07 Jun 2008 13:57:19 -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:mime-version:content-type:content-transfer-encoding :content-disposition; bh=B9ZTouDuFE/ZXVIboYt9SxCwiikITmZJKyeyL4H5/Hg=; b=UFbonPnNRvOWscnZLvOOhRE7RuqyK5yj3ixVclH/dOBOqAGoPHE5IRXXMte5WNIatu VTmpm92/i+mhSv/mHUvxur+IyuyQlCh9+MI8yHaTPx+ivEfYFs16xPbADH857Q/3YAMk e/F1K+0gWNV3HcV/QxqBy8mr/Be2JfxZqucB0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=oC9N79uKo65lF+HQWMl9LrEqFnrdNvf6DFOOgCyk13BkGMDaEbngAhRynaWMvSQQOq RPDQgir9XSSBsglxp/v4r557tsJSs+KyBuPHxLzpPFC8FFsv+PCQD3w48V4+FMoY44Dv Rx1CLO44cPGWIKpEw6z+301B6Qa8t7xvvnFsc= Received: by 10.78.199.8 with SMTP id w8mr865441huf.106.1212872238828; Sat, 07 Jun 2008 13:57:18 -0700 (PDT) Received: by 10.78.149.5 with HTTP; Sat, 7 Jun 2008 13:57:13 -0700 (PDT) Message-ID: Date: Sat, 7 Jun 2008 22:57:13 +0200 From: "Carlos Costa" To: pgsql-php@postgresql.org Subject: Problems connecting (from php to pg) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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/1 X-Sequence-Number: 3848 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.