PHP & Postgresql: Call to undefined function: pg_connect()

Gordon Moyer gmoyer at aracnet.com
Thu Feb 12 01:03:57 UTC 2004


Bingo!  The line was not present in /etc/php.ini:

"extension=pgsql.so"

Put this in, restarted httpd, fixed the problem.

Thanks for your help.

gm

-----Original Message-----
From: fedora-list-admin at redhat.com
[mailto:fedora-list-admin at redhat.com]On Behalf Of Richard Welty
Sent: Tuesday, February 10, 2004 8:32 PM
To: fedora-list at redhat.com
Subject: Re: PHP & Postgresql: Call to undefined function: pg_connect()


On Tue, 10 Feb 2004 20:14:08 -0800 Gordon Moyer <gmoyer at aracnet.com> wrote:
> I upgraded from 7.2 to Fedora about two months ago.  I am current on
update
> packages.

> I'm trying to run postgresql with PHP and am getting error:  Call to
> undefined function: pg_connect().

> >From phpinfo(): '--with-pgsql=shared'.

> What's wrong??

i'd start out by looking in /etc/php.ini and making sure that the
appropate lines for the postgresql libs are uncommented. this is
a common glitch with php upgrades; the new php.ini gets
installed and by default, postgresql is not enabled.

richard
--
Richard Welty                                         rwelty at averillpark.net
Averill Park Networking                                         518-573-7592
    Java, PHP, PostgreSQL, Unix, Linux, IP Network Engineering, Security


--
fedora-list mailing list
fedora-list at redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list





More information about the fedora-list mailing list