Difference between revisions of "Install SQLite 3"

From rbachwiki
Jump to navigation Jump to search
 
Line 18: Line 18:


==[[Main_Page| Home]] - [[Ubuntu_Tips|Category]]==
==[[Main_Page| Home]] - [[Ubuntu_Tips|Category]]==
[[Category:Linode]][[Category:Sqlite]]

Latest revision as of 20:52, 10 May 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


Home - Category