postgresql setup

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
hoperegrine
Forum Newbie
Posts: 1
Joined: Mon May 01, 2006 2:10 pm

postgresql setup

Post by hoperegrine »

im trying to get php to communicate with postgresql, when i run pg_connect i get...

Warning: dl(): Unable to load dynamic library '/usr/lib/php4/pgsql.so' - libpq.so.3: cannot open shared object file: No such file or directory in /var/www/html/test.php on line 3

Fatal error: Call to undefined function: pg_connect() in /var/www/html/test.php on line 4

in phpinfo()'s configure command section '--with-pgsql=shared' is listed

i tried enabling it using extension=pgsql.so
as well as using dl("pgsql.so")

i have no experience dealing with extensions in linux, so im running out of ideas.
Post Reply