gpt4 book ai didi

PHP - 无法加载动态库 '/usr/lib64/php/modules/

转载 作者:太空狗 更新时间:2023-10-29 12:16:07 25 4
gpt4 key购买 nike

当我尝试运行我的网页时遇到以下错误,该网页嵌入了调用 mysql 数据库的 php 脚本:


PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/dbase.so' - /usr/lib64/php/modules/dbase.so: undefined symbol: core_globals in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysql.so' - /usr/lib64/php/modules/mysql.so: undefined symbol: executor_globals in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysqli.so' - /usr/lib64/php/modules/mysqli.so: undefined symbol: executor_globals in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo.so' - /usr/lib64/php/modules/pdo.so: undefined symbol: executor_globals in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_mysql.so' - /usr/lib64/php/modules/pdo_mysql.so: undefined symbol: php_pdo_register_driver in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_sqlite.so' - /usr/lib64/php/modules/pdo_sqlite.so: undefined symbol: executor_globals in Unknown on line 0
[notice] Apache/2.2.3 (Red Hat) configured -- resuming normal operations
PHP Fatal error: Call to undefined function mysqli_connect() in /var/www/html/index.php on line 11

我检查了我的 php.ini 文件并验证了 extension_dir 指令引用了正确的目录,即 /usr/lib64/php/modules/

是否有人能够阐明为什么会出现这些错误?

最佳答案

您应该打开位于 php 文件夹中的 php.ini 文件,并取消注释这行代码:

;extension=php_mysql.dll

然后它看起来像这样:

extension=php_mysql.dll

关于PHP - 无法加载动态库 '/usr/lib64/php/modules/,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24097377/

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