Skip site navigation (1) Skip section navigation (2)

Re: PHP cann't access to postgres databse

From: donghe(at)caltech(dot)edu
To: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: PHP cann't access to postgres databse
Date: 2009-06-26 03:12:01
Message-ID: 3041.131.215.15.78.1245985921.squirrel@webmail.caltech.edu (view raw or flat)
Thread:
Lists: pgsql-admin
Yes, I did configured these two files, so, PHP can talk with postgres, but
Apache-owned PHP can not.

> On Thu, Jun 25, 2009 at 6:54 PM, <donghe(at)caltech(dot)edu> wrote:
>> Hi gurus!
>>
>> my PHP scripts don't call upon the postgres database from within HTML
>> files served to web browsers by Apache, but PHP scritps itself can
>> access
>> to database. I guess some configuration between PHP and Apache is wrong.
>> Do anybody have any idea?
>> Thanks!
>
> Yeah, you're looking for pg_hba.conf and postgresql.conf.
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>



In response to

pgsql-admin by date

Next:From: Iñigo Martinez LasalaDate: 2009-06-26 07:52:35
Subject: Re: PHP cann't access to postgres databse
Previous:From: Scott MarloweDate: 2009-06-26 01:29:13
Subject: Re: PHP cann't access to postgres databse

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group