Re: FreeBSD/Postgres/Apache+PHP

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: babak badaei <badaei(at)yahoo(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: FreeBSD/Postgres/Apache+PHP
Date: 2011-03-31 19:44:52
Message-ID: 20110331194452.GB24692@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Mar 31, 2011 at 12:21:33PM -0700, babak badaei wrote:
> Hello Postgres Community,
>
> Thank you guys very much for PostgreSQL. To me, its the best database management system under the sun. I am setting up a new jail configuration on FreeBSD with sockets and everything enabled. I can ping localhost fine. The problem is that when I load a script that connects to the database, Postgres says Unable to connect to PostgreSQL server: FATAL: no pg_hba.conf entry for host "x.x.x.x" (my actual web IP). I have done the following on the host machine:
> I'd like Apache/PHP to just connect to Postgres localhost, not via the jail's IP--thus, no change to pg_hba.conf is needed. 

what is your connection configuration in php?
What's the host/port?

Best regards,

depesz

--
The best thing about modern society is how easy it is to avoid contact with it.
http://depesz.com/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Davi Duarte 2011-03-31 19:58:00 Pl/Python error when import "from __future__"
Previous Message babak badaei 2011-03-31 19:21:33 FreeBSD/Postgres/Apache+PHP