PostgreSQL on Webmin - Mailing list pgsql-general

From Kostadin Solakov
Subject PostgreSQL on Webmin
Date
Msg-id 49bd8040.0707d00a.2d89.ffffada7@mx.google.com
Whole thread Raw
Responses Re: PostgreSQL on Webmin
List pgsql-general

Hi there!

 

I just installed Webmin on my dedicated server and I really had hard time making all configuration that were needed to migrate my site. Anyway, now everything is working except for one thing. I can’t connect to the database through PHP. Remote connection is working fine, but local doesn’t.

The connection string looks like this:

 

pg_connect('host=localhost port=5432 user=user password=pass dbname=db')

 

I made the necessary changes in postgresql.conf

listen_addresses = '*'

port=5432

 

And I added this in pg_nba.conf:

 

local   all         all                      trust

local   all         user                 ident sameuser

local   db        user                 password

 

But still I cannot connect using php. The connection file is the same as it was on my previous host (shared one) so it’s supposed to be working.

I created the same  database and user.

 

Any idea?

 

Thanks in advance!

 

 

Kostadin Solakov

 

GSM +389 75 470 503

Email: kostadin.solakov@gmail.com

Skype: kostadin.solakov

MSN: solakov@hotmail.com

LinkedIn: http://www.linkedin.com/kostadinsolakov

 

 

pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: Oracle to PostgreSQL
Next
From: John R Pierce
Date:
Subject: Re: PostgreSQL on Webmin