gpt4 book ai didi

PHP 启动 : Unable to load dynamic library for PHP folder

转载 作者:塔克拉玛干 更新时间:2023-11-03 05:43:15 25 4
gpt4 key购买 nike

我已经引用了链接,PHP5 similar issue

并尝试了所有相关解决方案,但我仍然遇到以下问题。任何帮助表示赞赏。谢谢!

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/msql.so' - /usr/lib/php/20131226/msql.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/php_pdo_mysql.dll' - /usr/lib/php/20131226/php_pdo_mysql.dll: cannot open shared object file: No such file or directory in Unknown on line 0 PHP 5.6.38-3+ubuntu14.04.1+deb.sury.org+1 (cli) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

最佳答案

您的 php.ini 配置文件引用了几个不存在的文件,例如 /usr/lib/php/20131226/php_pdo_mysql.dll ,您的 php 安装已损坏。重新安装 PHP 可能更容易,但如果您想手动修复它,请创建一个名为 phpinfo.php 的页面并让它包含

<?php phpinfo(~0);

并在浏览器中打开它,您将获得 php.ini 的位置和已解析的附加 ini 配置文件列表,一旦有了,扫描 php.ini 文件和所有附加配置文件,并删除所有对不存在的文件的引用。例如在这个截图中:

enter image description here

在这里你必须扫描文件 /etc/php/7.0/fpm/php.ini/etc/php/7.0/fpm/conf.d/10-mysqlnd.ini/etc/php/7.0/fpm/conf.d/10-opcache.ini/etc/php/7.0/fpm/conf.d/10-pdo.ini/etc/php/7.0/fpm/conf.d/15-xml.ini/etc/php/7.0/fpm/conf.d/20-calendar.ini/etc/php/7.0/fpm/conf.d/20-ctype.ini/etc/php/7.0/fpm/conf.d/20-curl.ini/etc/php/7.0/fpm/conf.d/20-dom.ini/etc/php/7.0/fpm/conf.d/20-exif.ini/etc/php/7.0/fpm/conf.d/20-fileinfo.ini/etc/php/7.0/fpm/conf.d/20-ftp.ini/etc/php/7.0/fpm/conf.d/20-gd.ini/etc/php/7.0/fpm/conf.d/20-gettext.ini/etc/php/7.0/fpm/conf.d/20-iconv.ini/etc/php/7.0/fpm/conf.d/20-json.ini/etc/php/7.0/fpm/conf.d/20-mbstring.ini/etc/php/7.0/fpm/conf.d/20-mysqli.ini/etc/php/7.0/fpm/conf.d/20-pdo_mysql.ini/etc/php/7.0/fpm/conf.d/20-pdo_sqlite.ini/etc/php/7.0/fpm/conf.d/20-phar.ini/etc/php/7.0/fpm/conf.d/20-posix.ini/etc/php/7.0/fpm/conf.d/20-readline.ini/etc/php/7.0/fpm/conf.d/20-shmop.ini/etc/php/7.0/fpm/conf.d/20-simplexml.ini/etc/php/7.0/fpm/conf.d/20-sockets.ini/etc/php/7.0/fpm/conf.d/20-sqlite3.ini/etc/php/7.0/fpm/conf.d/20-ssh2.ini/etc/php/7.0/fpm/conf.d/20-sysvmsg.ini/etc/php/7.0/fpm/conf.d/20-sysvsem.ini/etc/php/7.0/fpm/conf.d/20-sysvshm.ini/etc/php/7.0/fpm/conf.d/20-tokenizer.ini/etc/php/7.0/fpm/conf.d/20-wddx.ini/etc/php/7.0/fpm/conf.d/20-xdebug.ini/etc/php/7.0/fpm/conf.d/20-xmlreader.ini/etc/php/7.0/fpm/conf.d/20-xmlwriter.ini/etc/php/7.0/fpm/conf.d/20-xsl.ini 对于不存在的文件的引用,并删除这些引用......玩得开心

(但严重的是,您最好重新安装所需版本的 PHP。根据您的评论,我看到您已经安装了多个版本的 PHP。)

关于PHP 启动 : Unable to load dynamic library for PHP folder,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54723311/

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