Re: PHP cann't access to postgres databse

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <donghe(at)caltech(dot)edu>,"Julio Leyva" <jcleyva(at)hotmail(dot)com>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: PHP cann't access to postgres databse
Date: 2009-06-26 16:41:10
Message-ID: 4A44B3D60200002500027FA4@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

<donghe(at)caltech(dot)edu> wrote:

> Is the server running on host "localhost"
> and accepting TCP/IP connections on port 5432?

Is it?

Depending on your platform, you can check which ports are accepting
connections with something like:

netstat -plnt

If you don't see your port open there, listening on all addresses or
on the localhost IP, you probably need to modify your postgresql.conf
file to set listen_addresses or port as you need them. (You will need
to restart PostgreSQL.)

If the postgresql.conf file is good, you must have something
misconfigured in the networking on that box. You could run:

ping localhost

to see what that gives you.

-Kevin

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Andy Shellam 2009-06-26 16:54:40 Re: PHP cann't access to postgres databse
Previous Message donghe 2009-06-26 16:29:51 Re: PHP cann't access to postgres databse