Installer Pdo Sqlite Debian

/ Comments off
  1. Install Php Sqlite Debian
  2. Install Pdo Sqlite Debian
Active2 months ago
  • 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?

user139604
wowpatrickwowpatrick
2,0695 gold badges21 silver badges33 bronze badges

5 Answers

Michał ŠrajerMichał Šrajer
2,1991 gold badge15 silver badges14 bronze badges

In ubuntu 16.04 there is no php5-sqlite.You need:

Web Developer in PuneWeb Developer in Pune

Winmail dat mac download free. php5-sqlite - SQLite module for php5php-mdb2-driver-sqlite - PHP PEAR module to provide a SQLite driver for MDB2

sacsac

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

ShobiShobi

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:

Luis Cabrera BenitoLuis Cabrera Benito
Sqlite

Not the answer you're looking for? Browse other questions tagged ubuntuapache-http-serverphpsqlite or ask your own question.

Active2 months ago

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?

user139604
wowpatrickwowpatrick
2,0695 gold badges21 silver badges33 bronze badges

5 Answers

Michał ŠrajerMichał Šrajer

Install Php Sqlite Debian

2,1991 gold badge15 silver badges14 bronze badges

Install Pdo Sqlite Debian

In ubuntu 16.04 there is no php5-sqlite.You need:

Web Developer in PuneWeb Developer in Pune

php5-sqlite - SQLite module for php5php-mdb2-driver-sqlite - PHP PEAR module to provide a SQLite driver for MDB2

sacsac

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

ShobiShobi

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:

Luis Cabrera BenitoLuis Cabrera Benito

Not the answer you're looking for? Browse other questions tagged ubuntuapache-http-serverphpsqlite or ask your own question.