Hi all,
I had the same error message and fixed it adding a "-i" option near the line 42 that starts the postmaster, in the file "/etc/rc.d/init.d/postgres", after "/usr/sbin/postmaster".
Marcelo Carvalho Fernandes
Smart Tech Consulting
Rio de Janeiro - Brasil
www.smartech.com.br
Fredrik Hultkrantz wrote:
Hmm...
The ip you shall set in pg_hba.conf is the ip number of the computers that shall be allowed to connect to postgres using tcp/ip. In this case the computer that are running the php (ther server and not the client running the browser). Probably this is the same computer as the one the db is running on (if you don't have a special db server). Make sure that both 127.0.0.1 (localhost) and the ip number it goes by in the big big world is in this file. Restart postgres afterwards to be sure the change is applied (not sure if this is necessary).
You should also try to change the pg_connect to use ip number instead of localhost. Not sure if this will make any difference (shouldn't if you hostsfile is correct).
Hope this helps. Ask again otherwise 🙂
Fredrik