From: scott.marlowe <scott.marlowe@ihs.com>
To: DIB Walid <walid.dib@inrialpes.fr>
Cc: pgsql-php@postgresql.org
Subject: Re: installation problem
Date: Wed, 9 Apr 2003 11:52:20 -0600 (MDT)
Message-ID: <Pine.LNX.4.33.0304091149420.22442-100000@css120.ihs.com> (raw)
In-Reply-To: <200304091729.h39HTgD26416@imap-serv.inrialpes.fr>
On Wed, 9 Apr 2003, DIB Walid wrote:
> I install Apache 1.3.20, php 4.0.5 and postgresql 7.1.2
>
> When i try to connect to the db with the pg_connect function i got this error
> message:
> Fatal error: Call to undefined function: pg_connect() in
> /home/helix/dib/public_html/connexion.php on line 3
>
> i search in the documentation and th web and there is no real solution, i
> configure PHP with this option:
> --with-pgsql=shared
> when i start the database process i use:
> postmaster -i -D $PGDATA
Two suggestions:
1: update all three packages, as they have known security flaws you
shouldn't be using those old versions. I'd recommend the latest of each,
postgresql 7.3.2, php 4.3.whatever, and apache 1.3.27.
2: Just use the --with-pgsql switch alone, and see if the php ./configure
script can find it. the only thing I've ever needed to make things work
on Linux was to edit the /etc/ld.so.conf file and add a line for
/usr/local/pgsql/lib and run ldconfig. Other than that, the configure
script has always just found postgresql for me.
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: scott.marlowe@ihs.com, walid.dib@inrialpes.fr
Subject: Re: installation problem
In-Reply-To: <Pine.LNX.4.33.0304091149420.22442-100000@css120.ihs.com>
References: <200304091729.h39HTgD26416@imap-serv.inrialpes.fr> <Pine.LNX.4.33.0304091149420.22442-100000@css120.ihs.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