Server, Ubuntu 20.04, PHP 7.4 (Perfect Server instructions) with PHP 7.2 installed via ppandrej/php repo because code wasn't updated for PHP 7.4. Everything was working fine until today when creating a new database, I noticed the queue wasn't clearing. After searching Google, on the error, it pointed me here but not a clear resolution. Here is the error, Code: Fri Aug 20 19:35:01 UTC 2021 PHP Fatal error: Uncaught Error: Call to undefined function mysqli_init() in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php:83 Fri Aug 20 19:35:01 UTC 2021 Stack trace: Fri Aug 20 19:35:01 UTC 2021 #0 /usr/local/ispconfig/server/lib/app.inc.php(51): db->__construct() Fri Aug 20 19:35:01 UTC 2021 #1 /usr/local/ispconfig/server/lib/app.inc.php(241): app->__construct() Fri Aug 20 19:35:01 UTC 2021 #2 /usr/local/ispconfig/server/cron.php(71): require('...') Fri Aug 20 19:35:01 UTC 2021 #3 {main} Fri Aug 20 19:35:01 UTC 2021 thrown in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 83 I looked to see what version of PHP is installed by running Code: /usr/bin/php --version Which returns this, Code: PHP 8.0.9 (cli) (built: Jul 30 2021 13:03:39) ( NTS ) Copyright (c) The PHP Group Zend Engine v4.0.9, Copyright (c) Zend Technologies with Zend OPcache v8.0.9, Copyright (c), by Zend Technologies I have no clue on how PHP8 got installed but it is missing plugins and would prefer getting rid of it of switching back to 7.4 as default. I ran Code: sudo a2dismod php8.0 sudo a2enmod php7.4 sudo service apache2 restart First line response, Second line response, I currently have the cron job disabled that runs the tasks as recommend in another thread. Any help greatly appreciated.
I figured it out, I had to run the following to switch it back. Code: sudo update-alternatives --set php /usr/bin/php.7.4
It's covered in the read before posting: https://www.howtoforge.com/community/threads/please-read-before-posting.58408/