dmag's avatar
Level 6

sqlite: "could not find driver"

Cannot get sqlite work on live server, it works fine on local server. Here's my .env variables:

DB_CONNECTION=sqlite
DB_DATABASE=/var/www/html/example.com/public_html/database/database.sqlite
0 likes
3 replies
sergioMonteiro's avatar

Hello Dmag, execute the commands in terminal shell:

1º) php -i|grep PDO

If the visible exit: PDO Driver for SQLite 3.x => enabled

Case no! So execute that command. 2º) sudo apt-get install php5-sqlite

1 like
rodney.hess's avatar

If you are on PHP7.2 then try:

sudo apt-get install php7.2-sqlite3

2 likes

Please or to participate in this conversation.