I tried installing SQLite for my system, it didn’t work. Now any time I try to run PHP code though the terminal, this error is given:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/sqlite3.so' - /usr/lib/php5/20090626+lfs/sqlite3.so: cannot open shared object file: No such file or directory in Unknown on line 0
It’s very annoying that I can’t run PHP scripts.. Anyone know what I can do to fix this? I did a quick search on Google to fix the error and I couldn’t find anything.
Looks like your PHP configuration includes a line similar to
extension=sqlite3.so. This configuration is typically inside/etc/php/or/etc/php5/. Trygrep -r sqlite *in that directory to find which config file mentions it, comment out that line using;, and restart your webserver.