Installing php-sqlite3
Follow these steps to install php-sqlite3:
phpize
./configure --with-sqlite3=/path/to/sqlite3
make && make install
You may (optionally) install DB/sqlite3.php class; this will add the sqlite3 driver to the PEAR database abstraction layer (see http://pear.php.net/package/DB).
cp DB/sqlite3.php /path/to/php/lib/php/DB/sqlite3.php
Enabling the extension
add the following line near the beginning of your script:
dl('sqlite3.so');
add (or update) the following line in php.ini:
extensions = sqlite3.so [other extensions]