Search Postgresql Archives

PostgreSQL on Webmin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx

Skype: kostadin.solakov

MSN: solakov@xxxxxxxxxxx

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

 

 


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux