No pudo encontrar el controlador (SQL: Pragma extranjero_keys = on;)
sudo apt-get install php-sqlite3
Expensive Earthworm
sudo apt-get install php-sqlite3
Sometimes sudo apt-get install php-sqlite3 doesn't work.
You have to specify the php version to get the exact driver in your computer.
In case you have php version 7.4 then you need to run
sudo apt-get install php7.4-sqlite3