Re: Can't Get PHP Going on PostgreSQL

Поиск
Список
Период
Сортировка
От Thom Dyson
Тема Re: Can't Get PHP Going on PostgreSQL
Дата
Msg-id OF7129B5CC.B623FAB2-ON88256FC0.00748802-88256FC0.0074E9F5@sybex.com
обсуждение исходный текст
Ответ на Can't Get PHP Going on PostgreSQL  ("Van Ingen, Lane" <lvaningen@ESNCC.com>)
Список pgsql-php
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@postgresql.org 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.


В списке pgsql-php по дате отправления:

Предыдущее
От: "Van Ingen, Lane"
Дата:
Сообщение: Can't Get PHP Going on PostgreSQL
Следующее
От: "Gavin M. Roy"
Дата:
Сообщение: Re: Can't Get PHP Going on PostgreSQL