how to enable sqlite3 for php?

前端 未结 15 824
野性不改
野性不改 2020-11-28 03:53

I am trying to install sqlite3 for PHP in Ubuntu.

I install apt-get php5-sqlite3 and edited php.ini to include sqlite3 extension.

W

15条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-28 04:06

    For Debian distributions. Nothing worked for until I added the debian main repositories on the apt sources (I don't know how were they removed): sudo vi /etc/apt/sources.list

    and added

    deb  http://deb.debian.org/debian  stretch main
    deb-src  http://deb.debian.org/debian  stretch main
    

    after that sudo apt-get update (you can upgrade too) and finally sudo apt-get install php-sqlite3

提交回复
热议问题