PDO_SQLITE driver not present.. what to do?

Felipe picture Felipe · Jan 11, 2012 · Viewed 61.5k times · Source

I see everywhere (including on the official docs) that the PDO_SQLITE driver is/should be included by default in PHP.

However, when I look at my extension_directory, I see only these files:

gd.so mcrypt.so mysqli.so mysql.so pdo_mysql.so pdo.so

And, as a result, a framework I'm trying to install (Symfony) tells me I need to install either the PDO_SQLITE or the SQLite3 .so extensions...

Can anyone help? Can I just try and find the needed .so file somewhere on the web, place it in my extensions_directory and then include it in php.ini??

BTW: I'm running php 5.3.6 downloaded via apt-get on ubuntu.

Answer

jere picture jere · Jan 11, 2012

did you try sudo apt-get install php5-sqlite?