简体   繁体   中英

How to upgrade sqlite3 on Ubuntu 12.04 + Apache Apache 2.4 + PHP 5.5

I have an old Ubuntu server 12.04, with many software's configuration so I can't upgrade to new version Ubuntu. In theses, Apache with PHP 5.5.26 and SQlite3 3.7.9. How do I update / upgrade only my sqlite3 to new version 3.8.2 or upper?

I've tried remove + install php5-sqlite via apt-get but nothing change.

I've download and install the sqlite3 3.8.10 package from www.sqlite.org by

sudo wget https://www.sqlite.org/2015/sqlite-autoconf-3081002.tar.gz
tar -xzvf sqlite-autoconf-3081002.tar.gz
cd sqlite-autoconf-3081002
./configure
make
sudo make install

And my sqlite3 --version is updated, but my PHP's sqlite not change.

P/S : I need sqlite's function instr that is not in my old sqlite's version.

Thanks for helps

You have to update your sqlite.so file in php extensions. Have a look here:

PHP SQLite Extension Installation

See, if that helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM