
December 18th, 2002, 01:20 PM
|
|
Contributing User
|
|
Join Date: Sep 2002
Location: France
Posts: 55
Time spent in forums: < 1 sec
Reputation Power: 11
|
|
|
Re: pg_connect() unable to connect to PostgreSQL server
I see 3 possibilities to fix your problem :
1 - Check the postmaster is launched with the -i option. It means it can get tcp/ip connections
2 - Look into the pg_hba.conf file in the pgsql folder (/var/log/pgsql under redhat). This file manages access to the postmaster. The syntax is explained inside it.
3 - If the postmaster is on the same system as apache I think u may connect it through unix sockets, not tcp/ip. BTW, what is your connection string?
|