ha, unbelievable, indeed the solution was here
http://www.phpbuilder.com/board/archive/index.php/t-10307306.html
wget -q
http://pecl.php.net/get/SQLite-1.0.3.tgz
then unpacked and began to compile it
$ tar zxvf SQLite-1.0.3.tgz
$ cd SQLite-1.0.3
$ phpize
$ ./configure
$ make
make failed here with some offset error
edit sqlite.c, comment out the following line:
/* static unsigned char arg3_force_ref[] = {3, BYREF_NONE, BYREF_NONE, BYREF_FORCE }; */
And then change these lines
function_entry sqlite_functions[] = {
PHP_FE(sqlite_open, arg3_force_ref)
PHP_FE(sqlite_popen, arg3_force_ref)
to:
function_entry sqlite_functions[] = {
PHP_FE(sqlite_open, third_arg_force_ref)
PHP_FE(sqlite_popen, third_arg_force_ref)
$ make
$ make install
make install plopped the .so into the correct directory without need of this
$ cp modules/sqlite.so /usr/lib/php/modules
$ /sbin/service/httpd restart
it worked wonderfully for me