My DKIM keys are now invalid, because for some reason amavis points to some older keys than the ones I just created. (I created and saved new DKIM through ispconfig web interface, updated the DNS records, hence they're all invalid!) So I thought I'd try to reconfigure services, but then I got this (on debian 9, up to date, latest ispconfig): Code: ~/ispconfig3_install/install# php update.php >> Update Operating System: Debian 9.0 (Stretch) or compatible This application will update ISPConfig 3 on your server. Shall the script create a ISPConfig backup in /var/backup/ now? (yes,no) [yes]: Creating backup of "/usr/local/ispconfig" directory... Creating backup of "/etc" directory... PHP Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in /root/ispconfig3_install/install/update.php:234 Stack trace: #0 {main} thrown in /root/ispconfig3_install/install/update.php on line 234 That's not good either.
First, you should repair your PHP as PHP is currently not working and this might be the reason for your amavis failure as well as the whole ISPconfig server part cannot work when you have a command line PHP without support for MySQL installed.
I'm assuming this got deleted when I found out I could not run PHP 7.2 with ispconfig, but even so, it's still strange I got to have ispconfig installed without it. And updated several times before..
Code: # apt-get install --reinstall php-mysql* Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'php-mysqli' for glob 'php-mysql*' Note, selecting 'php-mysqlnd' for glob 'php-mysql*' Note, selecting 'php-mysql' for glob 'php-mysql*' Note, selecting 'php7.0-mysql' instead of 'php-mysqlnd' Note, selecting 'php7.0-mysql' instead of 'php-mysqli' 0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 1 not upgraded. Need to get 0 B/129 kB of archives. After this operation, 0 B of additional disk space will be used. (Reading database ... 91899 files and directories currently installed.) Preparing to unpack .../php-mysql_1%3a7.0+49_all.deb ... Unpacking php-mysql (1:7.0+49) over (1:7.0+49) ... Preparing to unpack .../php7.0-mysql_7.0.27-0+deb9u1_amd64.deb ... Unpacking php7.0-mysql (7.0.27-0+deb9u1) over (7.0.27-0+deb9u1) ... Setting up php7.0-mysql (7.0.27-0+deb9u1) ... Processing triggers for php7.0-fpm (7.0.27-0+deb9u1) ... Setting up php-mysql (1:7.0+49) ... @:~/ispconfig3_install/install# php update.php -------------------------------------------------------------------------------- _____ ___________ _____ __ _ ____ |_ _/ ___| ___ \ / __ \ / _(_) /__ \ | | \ `--.| |_/ / | / \/ ___ _ __ | |_ _ __ _ _/ / | | `--. \ __/ | | / _ \| '_ \| _| |/ _` | |_ | _| |_/\__/ / | | \__/\ (_) | | | | | | | (_| | ___\ \ \___/\____/\_| \____/\___/|_| |_|_| |_|\__, | \____/ __/ | |___/ -------------------------------------------------------------------------------- >> Update Operating System: Debian 9.0 (Stretch) or compatible This application will update ISPConfig 3 on your server. Shall the script create a ISPConfig backup in /var/backup/ now? (yes,no) [yes]: Creating backup of "/usr/local/ispconfig" directory... Creating backup of "/etc" directory... PHP Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in /root/ispconfig3_install/install/update.php:234 Stack trace: #0 {main} thrown in /root/ispconfig3_install/install/update.php on line 234 Still the same error..
It was there at the time you installed ISPConfig. Then the commandline PHP has still no mysql support.
First, you should check which php version you use: php --version and where the php binary is: which php
Thanks for putting me on the right track, @till ! That was indeed the source of many tiny issues I've encountered lately. Had to remove /urs/bin/php symlink since it still pointed to php7.2. (Strangely I thought I had purged php7.2, but apparently not..) After pointing the symlink to /usr/bin/php7.0 the # php update.php for ispconfig went and fixed the DKIM keys in a heartbeat. OK, found out why I didn't go through with # apt-get purge php7.2*. It removes all of php, also the older versions. So much for apt getting in the way of cleaning up a mistake..