Re: PHP cann't access to postgres databse

From: Andy Shellam <andy-lists(at)networkmail(dot)eu>
To: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: donghe(at)caltech(dot)edu, pgsql-admin(at)postgresql(dot)org
Subject: Re: PHP cann't access to postgres databse
Date: 2009-06-26 17:27:56
Message-ID: 4A45051C.5040304@networkmail.eu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


> If it was trying to get that sort of connection, rather than TCP/IP,
> the message would be different. Something like:
>
> # could not connect to server: No such file or directory
> # Is the server running locally and accepting
> # connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
>

Ah yeah, good point.
>
> You do have a point on the "Permission denied", though. If the
> problem was where I was suggesting, it would probably say "Connection
> refused". Perhaps some OS security restriction is in play here.
>

SELinux? I've never used it personally but have heard it can throw some
errors you don't normally expect.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message donghe 2009-06-26 17:37:27 Re: PHP cann't access to postgres databse
Previous Message Carol Walter 2009-06-26 17:24:34 Re: PHP cann't access to postgres databse