pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Carlos Costa <ccosta@gmail.com>
To: pgsql-php@postgresql.org
Subject: Problems connecting (from php to pg)
Date: Sat, 7 Jun 2008 22:57:13 +0200
Message-ID: <afa694620806071357u3e569a38vc445385a5b2bad04@mail.gmail.com> (raw)

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.



view thread (3+ messages)  latest in thread

Message-ID: <afa694620806071357u3e569a38vc445385a5b2bad04@mail.gmail.com>
Permalink:  ../afa694620806071357u3e569a38vc445385a5b2bad04@mail.gmail.com/
Also on:    postgresql.org/message-id/afa694620806071357u3e569a38vc445385a5b2bad04@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: ccosta@gmail.com
  Subject: Re: Problems connecting (from php to pg)
  In-Reply-To: <afa694620806071357u3e569a38vc445385a5b2bad04@mail.gmail.com>
  References: <afa694620806071357u3e569a38vc445385a5b2bad04@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox