Can't get PHP to work with postgres
| From: | Bengt Hammarlin | Date: | Mon, 17 Nov 2003 01:51:25 +0000 |
| Subject: | Can't get PHP to work with postgres | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-12258@lists.php.net to get a copy of this message | ||
This is what I do:
cd httpd-2.0.48/ (apache)
configure
make
cd ../postgresql-7.3.4/
configure
make
make install
cd ../php-4.3.4/
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-postgres
make
make install
libtool --finish {path}/php-4.3.4/libs
Then I tar up /usr/local/apache2 and copy to my target machine that does
not have compilers and stuff.
for good measure i toss in /usr/local/postgres as well
When trying my page (that works well in a install-from-an-old-RH-CD
environment) I get
Fatal error: Call to undefined function: pg_pconnect() in
{other-path}/connect_db.php on line
I would very much appreciate some good advice.
Bengt Hammarlin