freePBX2.5, sqlite3 ad php

hello, all of users:
I want to install the freepbx2-5, sqlite3 and php.
when i install that from:
https://freetel.svn.sourceforge.net/svnroot/freetel/freepbx-sandbox/
I modified some packages, eventually, it can install. but it shows me some errors:

mkdir -p /usr/src/sanbox/root/var/run/asterisk; chmod 777 /usr/src/sanbox/root/var/run/asterisk;
mkdir -p /usr/src/sanbox/root/var/lib/asterisk/bin; chmod 777 /usr/src/sanbox/root/var/lib/asterisk/bin;
cd /usr/src/sanbox/freepbx-2.4.0; ./install_amp; chmod 777 /usr/src/sanbox/root/www -R
Checking for PEAR DB…OK
Checking for PEAR Console::Getopt…OK
Checking user…OK
Checking if Asterisk is running…running with PID: 29656…OK
Checking for /usr/src/sanbox/root/etc/amportal.conf…OK
Reading /usr/src/sanbox/root/etc/amportal.conf…OK
Checking for /etc/asterisk/asterisk.conf…OK
Reading /etc/asterisk/asterisk.conf…OK
Using asterisk as PBX Engine
Checking for Asterisk version…1.4.21.1
Checking for selinux…OK
Connecting to database…
Warning: dl(): SQLITE3: Unable to initialize module
Module compiled with module API=20060613, debug=1, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in /usr/src/sanbox/freepbx-2.4.0/install_amp on line 940
#touch /usr/src/sanbox/freepbx-2.4.0.installed
voyage:/usr/src/sanbox# vi freepbx-2.4.0/install_amp
voyage:/usr/src/sanbox#

from errors, i try to modify the make file and disable the debug in PHP make file, it still shows that the options are not same. anybody knows how to solve the problem?
thanks!
zhu

which version of FreePBX?

You say 2.5 but are showing working in the freepbx-2.4.0 directory which would imply that you are not using 2.5.

hello, fskrotzki:
sorry, it is my mistake. I use freepbx-2.4.0. I am wondering how to change the debug mode in php t0 meet the match.

Warning: dl(): SQLITE3: Unable to initialize module
Module compiled with module API=20060613, debug=1, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0

even, i write the code in the php in freepbx to write the debug mode, it still report this error. anyone has an idea for that?
thanks!
zhu

There was a large number of SQLite patches that were applied between 2.4 and 2.5. So first off I’d upgrade to 2.5 and then try it as I know they will not really go back and patch 2.4 (or previous versions) any more unless it is a security issue.