pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: babak badaei <badaei@yahoo.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Freebsd/Postgres/Apache+PHP
Date: Thu, 31 Mar 2011 12:18:38 -0700 (PDT)
Message-ID: <996772.55686.qm@web111305.mail.gq1.yahoo.com> (raw)

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. 

If you guys have any suggestions it would be very much appreciated!



view thread (2+ messages)  latest in thread

Message-ID: <996772.55686.qm@web111305.mail.gq1.yahoo.com>
Permalink:  ../996772.55686.qm@web111305.mail.gq1.yahoo.com/
Also on:    postgresql.org/message-id/996772.55686.qm@web111305.mail.gq1.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: badaei@yahoo.com
  Subject: Re: Freebsd/Postgres/Apache+PHP
  In-Reply-To: <996772.55686.qm@web111305.mail.gq1.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox