I'm using nginx in docker from trafex/php-nginx
But I don't get SQLite working.
The following php code
<?php
$db = new SQLite3('/var/private/anmeldungen.db');
$db->close();
throws this error [error] 9#9: *33 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Class "SQLite3" not found in /var/www/html/phpinfo.php:3
I'm using a dockerfile to install the sqlite package:
FROM trafex/php-nginx:latest
USER root
RUN apk add php8-pdo_sqlite
USER nobody
And in the PHPInfo I can see that the package is loaded:
Does anyone have an idea?