pdo sqlite could not find driver... php file not processing pdo sqlite could not find driver... php file not processing sqlite sqlite

pdo sqlite could not find driver... php file not processing


I had to actually install the extension, and this is how i did on Ubuntu 16 running PHP 7.1:

sudo apt install php7.1-sqlite3


You need

[PDO_SQLITE]extension=pdo_sqlite.so

to be enabled, for sqlite:.subscribers.db

or, for windows:

[PHP_PDO_SQLITE]extension=php_pdo_sqlite.dll

And ofcourse this extension in your ext directory


On archlinux i had to do two things:

first install php-sqlite

pacman -S php-sqlite

after that in my php.ini file for me in /etc/php/php.ini i had to uncomment this line:

;extension=pdo_sqlite.so

by removing semicolon.

Dont forget to restart server.