Re: PHP, Apache & PostgreSQL

From: Date: Sat, 21 Jul 2001 00:47:49 +0000
Subject: Re: PHP, Apache & PostgreSQL
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-3647@lists.php.net to get a copy of this message
The error is that it can't find your libpq.so library, not your pgsql.so one. Where is libpq.so.2.0 on your system? If you are on a Linux box, edit /etc/ld.so.conf and add thatr directory and then run ldconfig. -Rasmus On Fri, 20 Jul 2001, Sean McCoy wrote: > When I execute a pg_connect() in a .php file, I get an error indicating that > the function is not defined... > > That's because, in the Apache error log I'm getting the following: > > PHP Warning: Unable to load dynamic library '/usr/lib/pgsql.so' - > libpq.so.2.0: cannot open shared object file: No such file or directory in > Unknown on line 0 > > I have confirmed that my pgsql.so and libpq.so.* files are in my directory > specified in the php.ini file. And that the exention for pgsql.so exists in > the php.ini also. > > Would anyone know what I missed here? > Thanks, > Sean McCoy > sean@primenet.com > > > > >

« previous php.install (#3647) next »