In a CentOS 5 default installation, SQLite requires the pdo, sqlite and
pdo_sqlite extensions, which are not installed. The previous note was very
helpful, but needed some additions:
- get your source version from the historical releases page
- repeat the compile process below for pdo, sqlite and pdo-sqlite extensions,
(gcc is required and may have to be installed)
tar xvf php-your.version.here.tar.gz
cd php-your.version.here/ext/sqlite/
phpize
./configure
make
make install
- create file /etc/php.d/sqlite.ini:
; Enable sqlite extension module
extension=pdo.so
extension=sqlite.so
extension=pdo_sqlite.so
- [restart apache] service httpd restart
- search phpinfo(); for 'sqlite' to verify correct installation