New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP: Uncaught Error: Class 'SQLite3' not found #21852
Comments
Just did an install on my up-to-date RPi armv7l-musl and aarch64-musl. Running the command above succeeded. No error reported, an empty 'db' was created and On armv7l, however, it failed as above. I don’t have other systems to test handy right now. It seems the cross built php does work, at least for musl systems. So what’s different on glibc systems? |
I tried some other extensions and these did not work as well. So it does not seem to be a SQLite exclusive issue. I also tried compiling |
I think I found the solution, please test #22019 if it works for you. |
I installed the updated version |
if you use xampp or ... first close xampp or ... sorry my cant good speak english i hope i can help you. |
It worked, a thumbs up from me, good job! |
System
Void 4.19.118_1 armv7l Unknown uptodate rF
php-7.4.5_1
,php-sqlite-7.4.5_1
Actual behavior
I'm trying to get the PHP SQLite3 extension to work on my Raspberry PI. I installed the above packages and enabled the extension in
/etc/php/php.ini
by uncommenting;extension=sqlite3
.Executing
php -m
does not list sqlite as a PHP module.Executing
php -i
does not mention any SQLite3 support.Expected behavior
SQLite3 should work after installing
php-sqlite-7.4.5_1
and enabling the extension in/etc/php/php.ini
.Steps to reproduce the behavior
Install the above packages, enable SQLite3 extension and run
php -r 'new SQLite3("db");'
:The text was updated successfully, but these errors were encountered: