Difference between revisions of "Install SQLite 3"

From rbachwiki
Jump to navigation Jump to search
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

Revision as of 16:07, 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