Installer Pdo Sqlite Debian
- Setting Up SQLite3 PDO Drivers in PHP. Sudo apt-get install php5-sqlite note don't put a 3 and the end just leave it as sqlite. Pdo sqlite could not find driver php file not processing. Apache does not load PDO SQLSRV drivers ERROR: 'could not find driver' 2287.
- The packaged Debian version of of PHP5 in Debian Lenny is based on 5.2.6. From a quick google search I don't see a way to backport this. To access sqlite3 functionality on 5.2.6 you can use PDO.
How do I install the pdo_mysql driver on Red Hat Enterprise Linux 6.1? It appears to be working correctly for SQLite databases, but not MySQL. There's no file including pdo_mysql.so in /etc/php.d, and there is no copy of pdo_mysql.so in /usr/lib64/php/modules. And Google has failed me. If I were on Ubuntu or Debian, I'd apt-get install.
The default Ubuntu PHP package does not include the PDO SQLite extension. How can I install the SQLite PDO extension? Is there a package that one can easily install via apt-get?
5 Answers
Michał ŠrajerMichał ŠrajerIn ubuntu 16.04 there is no php5-sqlite.You need:
Winmail dat mac download free. php5-sqlite - SQLite module for php5php-mdb2-driver-sqlite - PHP PEAR module to provide a SQLite driver for MDB2
Just for clarification, I recently got into this issue, for php7.2 I had to run
which did install sqlite-3 there was no package named php-sqlite
First check your php version:
Then install the extension:
For example, for PHP 7.2:
Restart your apache server:
List the modules and it should print sqlite:

Not the answer you're looking for? Browse other questions tagged ubuntuapache-http-serverphpsqlite or ask your own question.
The default Ubuntu PHP package does not include the PDO SQLite extension. How can I install the SQLite PDO extension? Is there a package that one can easily install via apt-get?
5 Answers
Michał ŠrajerMichał ŠrajerInstall Php Sqlite Debian
Install Pdo Sqlite Debian
In ubuntu 16.04 there is no php5-sqlite.You need:
php5-sqlite - SQLite module for php5php-mdb2-driver-sqlite - PHP PEAR module to provide a SQLite driver for MDB2
Just for clarification, I recently got into this issue, for php7.2 I had to run
which did install sqlite-3 there was no package named php-sqlite
First check your php version:
Then install the extension:
For example, for PHP 7.2:
Restart your apache server:
List the modules and it should print sqlite: