Creating new database process makes the queue stuck

Discussion in 'General' started by koltz, Aug 20, 2021.

  1. koltz

    koltz Member

    Server, Ubuntu 20.04, PHP 7.4 (Perfect Server instructions) with PHP 7.2 installed via ppa:eek:ndrej/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,

    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/
    Fri Aug 20 19:35:01 UTC 2021 Stack trace:
    Fri Aug 20 19:35:01 UTC 2021 #0 /usr/local/ispconfig/server/lib/ db->__construct()
    Fri Aug 20 19:35:01 UTC 2021 #1 /usr/local/ispconfig/server/lib/ 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/ on line 83
    I looked to see what version of PHP is installed by running

    /usr/bin/php --version
    Which returns this,

    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

    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.
  2. koltz

    koltz Member

    I figured it out, I had to run the following to switch it back.

    sudo update-alternatives --set php /usr/bin/php.7.4
  3. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

Share This Page