Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ILikeDARts's avatar

Issue with SQLite version

Hi! I had SQLite v3.31 on Ubuntu v20.04. Than I removed SQLite v3.31 and install SQLite v3.34. But my Laravel application continue using SQLite v3.31. Than I removed my old local.db file and create new one. It was not help - app continue uses SQLite v3.31.

For check version I use this script - "select sqlite_version()". I don't have any idea why I have this issue. Can you help me please?

0 likes
19 replies
ILikeDARts's avatar

@Tray2 Thanks! But is not what I need) Already used that article for first installation.

Tray2's avatar

@ILikeDARts Have you rebooted since the updgrade?

What does which sqlite3 give you and what does sqlite3 --version give you?

Sinnbeck's avatar

@ILikeDARts That should be what sudo apt install php8.1-sqlite3 should do. Any chance your server does not use the ondrej PPA?

sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt upgrade
Sinnbeck's avatar

@ILikeDARts From the error it looks it it isnt working.

sudo apt purge php8.1-sqlite3
sudo apt install php8.1-sqlite3
ILikeDARts's avatar

Also, I think you need to know)

Locally I have Windows with SQLite v3.36 and all work fine)

Please or to participate in this conversation.