Re: Can't Get PHP Going on PostgreSQL

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



Your php install doesn't know about (or can't find) the postgresql 
extension.  Default installs don't usually include postgresql support I 
think.

run this command

 ldd /usr/local/apache/libexec/libphp4.so

where the second parameter is the location of your php module for apache.

This will list the shared object files that php needs.  If you don't see a 
line like this

 libpq.so.3 => /usr/lib/libpq.so.3 (0x4001b000)

then php was not compiled to include postgresql.

Thom Dyson
Director of Information Services
Sybex, Inc.
 


pgsql-php-owner@xxxxxxxxxxxxxx wrote on 03/10/2005 01:08:47 PM:

> I am new to both PHP and PostgreSQL. Trying to install PHP and 
> PostgreSQL 8.0 on Slackware Linux 10.0.0 .
> I am getting the following error out of Apache:
> "Fatal Error: Call to undefined function: pg_connect() ...."

> PostgreSQL is up and running, and appears to be fine.



[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux