Update ISPConfig error

Discussion in 'Installation/Configuration' started by Walterpet, Jun 29, 2020.

Tags:
  1. Walterpet

    Walterpet Member

    Dear Sirs,
    I have installed ISP config on Operating System: Ubuntu 18.04.4 LTS (Bionic Beaver)
    but when I go to update ISPConfig I get the following error:
    [.....]
    Creating backup of "/usr/local/ispconfig" directory...
    Creating backup of "/etc" directory...
    PHP Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in /tmp/ispconfig3_install/install/update.php:240
    Stack trace:
    #0 {main}
    thrown in /tmp/ispconfig3_install/install/update.php on line 240

    In addition, ISPConfig does not update the changes to the server.
    I hope in all you!
    Best regards from Italy

    Walter
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The commandline php of your server lacks mysql support. Please post the result of:

    php --version
     
  3. Walterpet

    Walterpet Member

     
  4. Walterpet

    Walterpet Member

    root@server:~# php --version
    PHP 7.4.7 (cli) (built: Jun 12 2020 07:44:05) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.7, Copyright (c), by Zend Technologies
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, seems as if you replaced the system php of your Ubuntu version with a newer php version that has no MySQL support installed. Please run these commands to set the correct default version again:

    update-alternatives --config php
    update-alternatives --config php-cgi

    The default php version on Ubuntu 18.03 is 7.2 if I remember correctly.
     
  6. Walterpet

    Walterpet Member

    You are great!
    thank you very much
     

Share This Page