Troubles after ugrading to Debian Stretch / MariaDB

The error seems to say that the php MySQL driver is not installed.

The upgrade from jessie to stretch also changes the default PHP version from 5.6 to 7.0. Please check with dpkg -l php* which versions of PHP you have installed. If there are multiple, look at ls -al /etc/alternatives/php* to see which ones are the default.

Then you should make sure that:

  • the database driver is installed for the PHP version you use. If you now use php7, then the package php7.0-mysql is needed.

  • the webserver and cron job use the same PHP version