From: Matthew Terenzio <matt@jobsforge.com>
To: pgsql-php@postgresql.org
Subject: Re: PHP and Postgres setup
Date: Mon, 21 Mar 2005 08:34:14 -0500
Message-ID: <f8d92a49d6efe8df74bfe74991f02b92@jobsforge.com> (raw)
In-Reply-To: <20050321131047.93504.qmail@web53406.mail.yahoo.com>
References: <20050321131047.93504.qmail@web53406.mail.yahoo.com>
On Mar 21, 2005, at 8:10 AM, germ germ wrote:
>
> What do I need to configure in order for Appache and
> Postgres to be able to talk back and forth?
A couple things need to be done. It would help if you stated where and
what the failure message was. If you haven't gotten that far then start
with these items.
1. Check to see if you started postgres with a -i flag. this alows it
to receive connections over the internet.
2.Also, in pg_hba.conf you must make sure you are allowing connections
from the web server host. If that is the local host, you should be okay
if you can already connect with the given user and pass you are going
to use inside the PHP scripts. Restart postgres if you change this
file. remember the -i again.
3. And you must have PHP compiled with postgres support.
You don't really need to change Apache. At least it's not necessary to
start making connections to the DB.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: matt@jobsforge.com
Subject: Re: PHP and Postgres setup
In-Reply-To: <f8d92a49d6efe8df74bfe74991f02b92@jobsforge.com>
References: <20050321131047.93504.qmail@web53406.mail.yahoo.com> <f8d92a49d6efe8df74bfe74991f02b92@jobsforge.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