laravel 7 using sqlite give could not find driver (SQL: PRAGMA foreign_keys = ON;)

849 views
Skip to first unread message

Houssam Eddine

unread,
Aug 22, 2020, 7:37:39 PM8/22/20
to PHP Desktop
I'm using laravel 7 with sqlite database, I downloaded phpdesktop and change the php version to 7.2.3 nts, and then in the php.ini file i uncomment pdo_sqlite, pdo_mysql and even sqlite3 extensions, but when I run the php desktop chrome file i get this error:  could not find driver (SQL: PRAGMA foreign_keys = ON;)  and this means that sqlite is not active, I tried to change the extension_dir to "./ext", "ext", "absolute_path/ext" but nothing works for me, any ideas please?  

Czarek Tomczak

unread,
Sep 4, 2020, 12:43:17 PM9/4/20
to PHP Desktop
SQLite should be enabled by default in the official release. Something must went wrong when upgrading PHP. Compare your PHP/ directory files and the PHP.ini file with the originals.

joseph prosper

unread,
Sep 19, 2020, 8:33:18 AM9/19/20
to PHP Desktop

hi. i got error in laravel 7, with php v7.4+ Call to undefined function Illuminate\Encryption\openssl_cipher_iv_length(), 
how to fix this issue. do I need to downgrade php version? if so do i need to change php version in my system 
Im use Ubuntu 20.04. please help 
Reply all
Reply to author
Forward
0 new messages