pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jasen Betts <jasen@xnet.co.nz>
To: pgsql-php@postgresql.org
Subject: Re: problem with connection to remote server
Date: 29 Jan 2010 10:52:52 GMT
Message-ID: <hjuem4$7le$1@reversiblemaps.ath.cx> (raw)
References: <72b0d9d047b1.4b616c3d@pwr.wroc.pl>
	<1264672955.25189.256.camel@happy.home.mcmillan.net.nz>
	<20100128074300.59a4591d.wmoran@potentialtech.com>
	<73a0d649417f.4b61a0de@pwr.wroc.pl>

On 2010-01-28, Ireneusz Tarnowski <Ireneusz.Tarnowski@pwr.wroc.pl> wrote:
>> In addition to this, PHP will give some pretty useful error messages when
>> it can't connect.  If you're not seeing those, then you should adjust
>> your application logic to log them, it will make your life a lot easier.
>> If they don't clearly define the problem, post them here ... I (and
>> others like me) have seen them enough to know what they indicate.
>
> I have warning:
>
> Warning: pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL server: could not connect to server: No such file or directory Is the server running on host "XX.XX.XX.XX" and accepting TCP/IP connections on port 5432? in /export/sun1000/XXXXXXX/public_html/dbtest.php on line 10
>
> And nothing more. Postgresql log, apache error log and php error log write nothing  about this connection.

"No such file or directory" is ENOENT but I can't see how errno is
getting set to that on an IP socket connectiom.



view thread (6+ messages)

Message-ID: <hjuem4$7le$1@reversiblemaps.ath.cx>
Permalink:  ../hjuem4$7le$1@reversiblemaps.ath.cx/
Also on:    postgresql.org/message-id/hjuem4$7le$1@reversiblemaps.ath.cx

 · 

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: jasen@xnet.co.nz
  Subject: Re: problem with connection to remote server
  In-Reply-To: <hjuem4$7le$1@reversiblemaps.ath.cx>
  References: <72b0d9d047b1.4b616c3d@pwr.wroc.pl> <1264672955.25189.256.camel@happy.home.mcmillan.net.nz> <20100128074300.59a4591d.wmoran@potentialtech.com> <73a0d649417f.4b61a0de@pwr.wroc.pl> <hjuem4$7le$1@reversiblemaps.ath.cx>

* 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