Fatal error: Call to undefined function mysqli_connect()

前端 未结 14 782
面向向阳花
面向向阳花 2020-11-22 14:48

For 2 days now I\'m trying to solve this, but unfortunately no result. Let me tell you my story about the problem. I\'ve bulid an application on a site, and the application

相关标签:
14条回答
  • 2020-11-22 15:15

    If you host the server yourself, and that server happens to be Apache, you can also get this error even if you have uncommented extension=php_mysqli.dll in php.ini.

    You also need to tell Apache where to find php.ini by using the PHPIniDir directive in Apache's httpd.conf

    AddHandler application/x-httpd-php .php
    PHPIniDir "<path-to-folder-where-php-ini-lives>"
    
    0 讨论(0)
  • 2020-11-22 15:17

    Simply do it

    sudo apt install php-mysqli

    It works perfectly and it is version independent

    0 讨论(0)
提交回复
热议问题