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

Re: php4, apache y postgresl 7 de LaEspiral



Hola,

en /etc/php4/apache/php.ini
tienes la línea
extension=pgsql.so ?
sino incluyela

espero que te sirva !
jaume.

David Charro Ripa wrote:

> No consigo conectar con postgresql 7
>
> Tengo de LaEspiral:
>         postgresql 7
>         libpgsql2
>
> De potato:
>         php4
>         php4-pgsql
>         apache
>
> El error:
>
> Warning: Unable to load dynamic library '/usr/lib/php4/apache/pgsql.so'
> - libpq.so.2.0: cannot open shared object file: No such file or
> directory in /home/httpd/index.php on line 16
>
> Fatal error: Call to undefined function: pg_connect() in
> /home/httpd/index.php on line 17
>
> Las líneas 16 y 17 del script php son:
>
> dl("pgsql.so");
> pg_connect("host=localhost dbname=template1 user=postgres");
>
> Gracias por las ayudas
>
> Saludos
>
> David
>
> --
> Unsubscribe?  mail -s unsubscribe debian-user-spanish-request@lists.debian.org < /dev/null



Reply to: