Re: Unable to connect to PostgreSQL server via PHP

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "John Coulthard" <bahhab(at)hotmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Unable to connect to PostgreSQL server via PHP
Date: 2007-08-13 14:09:15
Message-ID: 5212.1187014155@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"John Coulthard" <bahhab(at)hotmail(dot)com> writes:
> That's not my problem though this is "could not connect to server:
> Permission denied" If it's denying permission I must have the permissions
> set wrong but where to I start looking for them?

"Permission denied" is a pretty strange error for a TCP connect failure,
as that is not a filesystem operation.

Are you able to connect with psql, or some other non-php client?
Use "psql -h localhost" to make sure it tries a TCP connection not
a Unix-socket connection.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gregory Stark 2007-08-13 14:09:45 Re: Problem Designing Index
Previous Message Terri Reid 2007-08-13 14:07:19 Non-superuser creating a flat file