In /var/lib/pgsql/data/postgresql.conf set tcpip_socket = true
It's false by default On Mon, 2004-08-02 at 10:41, Peter Rundle wrote: > Sluggers, > > As a php and postgres newbie, I'm trying to get php to connect to a > postgres database on the local machine (FC1). The error from php's > db_connect statement is that postgres isn't listening on tcp port 5432. > > # netstat -an | grep 543 > > unix 2 [ ACC ] STREAM LISTENING 4697223 /tmp/.s.PGSQL.5432 > > Hmmm, I was expecting to see tcp as the protocol, but it seems it's > listening on a unix domain socket. ??? > > I've checked the /etc/init.d/postgres file and PGPORT=5432 is set. > > Have I missed something? > > TIA's > > Pete. -- Howard. LANNet Computing Associates; Your Linux people <http://www.lannetlinux.com> ------------------------------------------ "When you just want a system that works, you choose Linux; when you want a system that just works, you choose Microsoft." ------------------------------------------ "Flatter government, not fatter government; Get rid of the Australian states." -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
