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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
[mailto:fedora-list-admin@xxxxxxxxxx]On Behalf Of Richard Welty
Sent: Tuesday, February 10, 2004 8:32 PM
To: fedora-list@xxxxxxxxxx
Subject: Re: PHP & Postgresql: Call to undefined function: pg_connect()


On Tue, 10 Feb 2004 20:14:08 -0800 Gordon Moyer <gmoyer@xxxxxxxxxxx> 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@xxxxxxxxxxxxxxx
Averill Park Networking                                         518-573-7592
    Java, PHP, PostgreSQL, Unix, Linux, IP Network Engineering, Security


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




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux