Search Postgresql Archives

Re: [PHP] works at command line but not in apache

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

 



Bob Hartung wrote:
> Thanks, but I have these changes in and it still will not connect:
> file:  pg_hba.conf:
> # IPv4 local connections:
> host    all         all         127.0.0.1/32          ident sameuser

He also wrote:
> >>$db = pg_connect('dbname=bpsimple user=minitwr password=RWHart') ;


The connection string you showed before will not match a "host" entry in
pg_hba.conf.  You need to have a "local" entry, which I think is
something that goes like

local	all	all		ident sameuser

Please check the documentation.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


[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