How to install and configure SQLite 3

Hi all,

I have installed SQLite3, php7.4-sqlite3, php8.2-squlite3, php8.3-squlite3, php8.4-squlite3
I have enabled extension=sqlite3 and extension=pdo_sqlite
I can’t get my Laravel project to work.
I don´t want to use MariaDB. What I want is SQLITE.

Here is a post that has never been answered with the same problem

I really appreciate any help you can provide.

Hi @fedekrum

I don’t use Laravel but what’s the exact error you get? Did you check the logs?

Show the output of these commands:

for i in $(ls -l /etc/php/ | awk '/^d/ {print $NF}'); do echo "Checking PHP $i"; php${i} -m | grep sqlite; done
dpkg -l | grep -E '^ii.*sqlite'

I forgot to say that you shouldn’t activate the extension manually, it’s done automatically when installing the packages. Maybe php is failing because it’s enabled twice.

grep -r '^extension=.*sqlite' /etc/php/

You are right !!!
I enabled all manually. I had disable them and it works.
Thanks !!

1 Like