Testing diary-master under Debian 13

Hi there!

I’m starting with Yii3; have cloned demo-diary-master under Debian 13, and I’m following the instructions (without Docker) in GitHub - yiisoft/demo-diary: Yii3 Demo Diary (Vertical slices) · GitHub. When I issue the fourth step (Apply migrations):

$ ./yii migrate:up

I’ve got a frantic exception:

2026-03-18 14:24:55.648100 [error][application] Yiisoft\Db\Exception\Exception: could not find driver in ./php/test.yii3/demo-diary-master/vendor/yiisoft/db/src/Driver/Pdo/AbstractPdoConnection.php:117 while running console command "migrate:up".

Where can I begin to look for a solution?

Thanks!

Hi,

The error is due to your PHP lacking the required Database driver (sqlite).
You should install the related package (sudo apt install php8.5-sqlite3)

Brilliant!

Thanks Mehdi!

Could you point me the files to change the config files from SQLite to MySQL? It seems it is hardwired in the code at src/Infrastructure/ServiceProvider.php

Thanks again!