Re: PHP Warning: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server:

From: Alban Hertroys <dalroi(at)solfertje(dot)student(dot)utwente(dot)nl>
To: Abdus Samad Ansari <ansarias(at)wbpcb(dot)gov(dot)in>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PHP Warning: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server:
Date: 2008-05-13 06:10:56
Message-ID: 2F29D253-326E-4894-BEAC-238CAB8D75B9@solfertje.student.utwente.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On May 12, 2008, at 11:58 AM, Abdus Samad Ansari wrote:

> PHP Warning: pg_connect(): Unable to connect to PostgreSQL server:
> could not connect to server:
> I have setup PHP/Postgres and is running fine upto document root
> i.e. /var/www/html, but when i am calling it through a cgi-bin php
> file
> it is giving log error as :
> [error] [client 127.0.0.1] PHP Warning: pg_connect(): Unable to
> connect
> to PostgreSQL server: could not connect to server: \x04\xe6\xe3\xbfPF;

Isn't that the server name it's printing after the message? Seems an
odd name for a server...
If I enter that in Vim I get "^Dæã¿PF", which doesn't even seem a
valid UTF-8 sequence according to my quick checks.

> what may be the solution.

Alban Hertroys

--
If you can't see the forest for the trees,
cut the trees and you'll see there is no forest.

!DSPAM:737,482930f1927662132392431!

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz *EXTERN* 2008-05-13 06:19:34 Re: How to create a function with multiple RefCursor OUT parameters
Previous Message Josh Tolley 2008-05-13 05:31:47 Re: Server not listening