pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
installation problem
2+ messages / 2 participants
[nested] [flat]

* installation problem
@ 2003-04-09 17:29 DIB Walid <walid.dib@inrialpes.fr>
  2003-04-09 17:52 ` Re: installation problem scott.marlowe <scott.marlowe@ihs.com>
  0 siblings, 1 reply; 2+ messages in thread

From: DIB Walid @ 2003-04-09 17:29 UTC (permalink / raw)
  To: pgsql-php

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

Can anyone help me???
Thanks.

Walid DIB
Inria Rhones Alpes




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: installation problem
  2003-04-09 17:29 installation problem DIB Walid <walid.dib@inrialpes.fr>
@ 2003-04-09 17:52 ` scott.marlowe <scott.marlowe@ihs.com>
  0 siblings, 0 replies; 2+ messages in thread

From: scott.marlowe @ 2003-04-09 17:52 UTC (permalink / raw)
  To: DIB Walid <walid.dib@inrialpes.fr>; +Cc: pgsql-php

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.




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-04-09 17:52 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-04-09 17:29 installation problem DIB Walid <walid.dib@inrialpes.fr>
2003-04-09 17:52 ` scott.marlowe <scott.marlowe@ihs.com>

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