Difference between revisions of "Install SQLite 3"

From rbachwiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
  apt install sqlite3
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
 
 
==[[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