From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Bob Hartung <rwhart(at)mchsi(dot)com> |
Cc: | Postgres-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: [PHP] works at command line but not in apache |
Date: | 2007-03-18 01:21:45 |
Message-ID: | 20070318012145.GC12620@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
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
From | Date | Subject | |
---|---|---|---|
Next Message | louis gonzales | 2007-03-18 01:37:22 | Re: Practical question. |
Previous Message | Reece Hart | 2007-03-18 01:14:17 | Re: Postgres Database size |