Could not connect to database, port 5432?

Having trouble installing serendipity?
Post Reply
fidel
Posts: 1
Joined: Wed Apr 05, 2006 6:34 am

Could not connect to database, port 5432?

Post by fidel »

Hello, I'm new to this but am not computer illiterate or anything so any advice is good advice.
Here's the problem I'm having:
Warning: pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL server: could not connect to server: Connection refused Is the server running on host localhost and accepting TCP/IP connections on port 5432? in /public_html/include/db/postgres.inc.php on line 308
Could not connect to database; check your settings.
could anyone enlighten me?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Could not connect to database, port 5432?

Post by garvinhicking »

Hi!

Sadly your postgresql server does not allow TCP-IP connetions for PHP. You need to tweak your pgsql pg_hba.conf file to allow TCP/IP connections. You might want to ask a postgresql specific forum on how to setup pgsql for PHP applications, since I only know MySQL better.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply