From: Michael Fuhr <mike@fuhr.org>
To: germ germ <super_code_monkey@yahoo.com>
Cc: pgsql-php@postgresql.org
Subject: Re: PHP and Postgres setup
Date: Mon, 21 Mar 2005 09:15:55 -0700
Message-ID: <20050321161555.GA22145@winnie.fuhr.org> (raw)
In-Reply-To: <20050321131047.93504.qmail@web53406.mail.yahoo.com>
References: <20050321131047.93504.qmail@web53406.mail.yahoo.com>
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/
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: mike@fuhr.org, super_code_monkey@yahoo.com
Subject: Re: PHP and Postgres setup
In-Reply-To: <20050321161555.GA22145@winnie.fuhr.org>
References: <20050321131047.93504.qmail@web53406.mail.yahoo.com> <20050321161555.GA22145@winnie.fuhr.org>
* 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