Re: PHP and Postgres setup - Mailing list pgsql-php

From Matthew Terenzio
Subject Re: PHP and Postgres setup
Date
Msg-id f8d92a49d6efe8df74bfe74991f02b92@jobsforge.com
Whole thread Raw
In response to PHP and Postgres setup  (germ germ <super_code_monkey@yahoo.com>)
List pgsql-php
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.


pgsql-php by date:

Previous
From: Christopher Browne
Date:
Subject: Re: Delay INSERT
Next
From: Martín Marqués
Date:
Subject: Re: New PHP/PostgreSQL functions