[Record:IT][Apache][SQLite] Using SQLite3 with Apache at Ubuntu Server

A testing PHP server for testing is built at an Ubuntu machine, and want to using SQLite as the database, cloning some codes from other projects and only Error 500 appeared……

After line by line checking, the problem is calling the ‘new SQLite3’ and remember that the SQLite3 hadn’t been installed…..

$ sudo apt-get update && sudo apt-get upgrade
$ sudo apt install php-sqlite3
$ sudo systemctl restart apache2

After install the php-sqlite3 and restart the apache2, everythings come back!

[TN-2023010]

--

--

TN.HK
Messages From Irresponsible Fat Boy

Record and share something that are found interesting when roaming at the internet or real life!