gpt4 book ai didi

php - VPS 服务器 -> fatal error : Call to undefined function mysqli_init()

转载 作者:行者123 更新时间:2023-12-04 19:37:04 34 4
gpt4 key购买 nike

当我们在 中尝试此代码时托管服务器 它的完美工作,
但我们将代码移至 VPS服务器godaddy 它给出了错误

Fatal error:  Call to undefined function mysqli_init() in  
/public_html/system/database/drivers/mysqli/mysqli_driver.php on line 135
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /public_html/system/database/drivers/mysqli/mysqli_driver.php:135)
Filename: core/Common.php
Line Number: 573
Backtrace:

A PHP Error was encountered
Severity: Error
Message: Call to undefined function mysqli_init()
Filename: mysqli/mysqli_driver.php
Line Number: 135
Backtrace:

最佳答案

您需要进入 VPS 上的 WHM 并安装 mysqli 扩展。您可以使用 EasyApache 来执行此操作,如此处所述...

https://www.godaddy.com/help/enabling-apache-or-php-modules-using-easyapache-6237

关于php - VPS 服务器 -> fatal error : Call to undefined function mysqli_init(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44825230/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com