Difference between revisions of "Install SQLite 3"
Jump to navigation
Jump to search
Line 15: | Line 15: | ||
php -m | grep sqlite | php -m | grep sqlite | ||
==[[Main_Page| Home]] - [[Ubuntu_Tips|Category]]== |
Revision as of 16:52, 14 April 2022
First check your php version:
php -v
Then install the extension:
sudo apt-get install php[version-here]-sqlite3
For example, for PHP 7.2:
sudo apt-get install php7.2-sqlite3
Restart your apache server:
sudo service apache2 restart
List the modules and it should print sqlite:
php -m | grep sqlite