Php dont support postgres

mcorrea

Verified User
Joined
Feb 23, 2006
Messages
15
I installed posgtres and pgphpadmin, but when I try to probe it, it shows:

Your PHP installation does not support PostgreSQL. You need to recompile PHP using the --with-pgsql configure option.

How can i recompile php or add the new function with out loosing the other functions i already install?
 
Code:
cd /usr/local/directadmin/customapache

nano configure.php

add (the path may vary accodring to your pgsql path)

Code:
        --with-pgsql=/var/lib/pgsql \

after

Code:
        --with-mysql=/usr \

save and exit

type
Code:
./build php n

at last restart apache
Code:
service httpd restart
 
dont work

I using FreeBSD and I get this problem when i #./build php n


.......

/usr/bin/ld: cannot find -lltdl
*** Error code 1

Stop in /usr/local/directadmin/customapache/php-4.4.2.

What should i do?
 
do u have libltdl installed?

found in the build file:

Code:
        #some reports of missing -lltdl, problem found to be simple missing link
        if [ ! -e /usr/lib/libltdl.so ]; then
                ln -s libltdl.so.3 /usr/lib/libltdl.so
        fi
 
Yes the lines into the the build appers:

#some reports of missing -lltdl, problem found to be simple missing link
if [ ! -e /usr/lib/libltdl.so ]; then
ln -s libltdl.so.3 /usr/lib/libltdl.so
fi
 
nope
i meant did u have libltdl installed

if not you need to install it
otherwise type "ln -s libltdl.so.3 /usr/lib/libltdl.so" as per the build file mentions
 
SOLUTION!!!!

ok, this was the solution
after add the lines in configure.php
--with-pgsql= /var/pgsql

cd /usr/local/directadmin/customapache/
#./build clean
#./build php

ok!
 
I've got problem with pgsql support with apache2. (on FreeBSD)

After compiling pgsql support into php (i tried this with php4 and php5), apache2 don't restart properly.

Apache 2 hangs with any restart reload or stop submitted by DA or directly via shell.

It's very disappointing....:(
 
Back
Top