Re: problem with connection to remote server

From: Ireneusz Tarnowski <Ireneusz(dot)Tarnowski(at)pwr(dot)wroc(dot)pl>
To: Bill Moran <wmoran(at)potentialtech(dot)com>, Andrew McMillan <andrew(at)morphoss(dot)com>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: problem with connection to remote server
Date: 2010-01-28 13:36:14
Message-ID: 73a0d649417f.4b61a0de@pwr.wroc.pl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

> 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.

--
Irek

In response to

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Bill Moran 2010-01-28 13:44:15 Re: Undefined function pg_connect()
Previous Message Gustavo Amarilla Santacruz 2010-01-28 13:35:49 Re: Undefined function pg_connect()