Re: PHP and Postgres setup

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: germ germ <super_code_monkey(at)yahoo(dot)com>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: PHP and Postgres setup
Date: 2005-03-21 16:15:55
Message-ID: 20050321161555.GA22145@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-php

On Mon, Mar 21, 2005 at 05:10:46AM -0800, germ germ wrote:

> I have installed Postgres on Suse 9.1 and created a
> test database but am unable to connect to it through
> PHP.

Please show the PHP code you're using to connect and any error
messages you get. Without seeing what you're doing and what's
happening, guesses about what's wrong would have little basis.

> What do I need to configure in order for Appache and
> Postgres to be able to talk back and forth?

See the "Database Users and Privileges" and "Client Authentication"
chapters in the PostgreSQL documentation. Verify that you can
connect to the database with psql before trying it with PHP. Make
sure PHP has PostgreSQL support (you can check by examining phpinfo()
output).

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Hrishikesh Deshmukh 2005-03-21 16:38:37 Re: Time Stamp
Previous Message Stephen Howie 2005-03-21 15:58:27 Re: Help with transactions

Browse pgsql-php by date

  From Date Subject
Next Message Shaun Clements 2005-03-22 11:44:16 FW: [GENERAL] PHP SQL
Previous Message Matthew Terenzio 2005-03-21 13:34:14 Re: PHP and Postgres setup