installation problem

installation problem

am 09.04.2003 19:29:39 von DIB Walid

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 err=
or=20
message:
Fatal error: Call to undefined function: pg_connect() in=20
/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=
=20
configure PHP with this option:
--with-pgsql=3Dshared
when i start the database process i use:
postmaster -i -D $PGDATA

Can anyone help me???
Thanks.

Walid DIB
Inria Rhones Alpes


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Re: installation problem

am 09.04.2003 19:52:20 von Scott Marlowe

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.


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html