I am trying to install sqlite3 for PHP in Ubuntu.
I install apt-get php5-sqlite3 and edited php.ini to include sqlite3 extension.
apt-get php5-sqlite3
php.ini
W
Depends on the version of PHP. For php7.0 the following commands work: sudo apt-get install php7.0-sqlite3 then restart the Apache server: sudo service apache2 restart
sudo apt-get install php7.0-sqlite3
sudo service apache2 restart