奇怪的 PHP 警告(无法加载动态库:no-debug-non-zts-20100525)

奇怪的 PHP 警告(无法加载动态库:no-debug-non-zts-20100525)

我临时在 apc.ini 中设置 apc.enable_cli=1,然后在终端中运行 php -r "apc_clear_cache();" 来清除 APC 缓存,但得到的结果如下:

PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php5/lib/php/extensions/no-debug-non-zts-20100525/mcrypt.so' - /opt/php5/lib/php/extensions/no-debug-non-zts-20100525/mcrypt.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 '/opt/php5/lib/php/extensions/no-debug-non-zts-20100525/mysql.so' - /opt/php5/lib/php/extensions/no-debug-non-zts-20100525/mysql.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 '/opt/php5/lib/php/extensions/no-debug-non-zts-20100525/mysqli.so' - /opt/php5/lib/php/extensions/no-debug-non-zts-20100525/mysqli.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 '/opt/php5/lib/php/extensions/no-debug-non-zts-20100525/pdo.so' - /opt/php5/lib/php/extensions/no-debug-non-zts-20100525/pdo.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 '/opt/php5/lib/php/extensions/no-debug-non-zts-20100525/pdo_mysql.so' - /opt/php5/lib/php/extensions/no-debug-non-zts-20100525/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

我在 Ubuntu Server 12.04 (VPS) 上运行 PHP-FPM 5.4.3、Nginx 1.3.1 和 APC 3.1.10。你知道这些错误是什么意思吗?

答案1

这些错误意味着文件/opt/php5/lib/php/extensions/no-debug-non-zts-20100525/mcrypt.so不存在,而你的 PHP 配置想要加载它。要么让文件存在(再次?),要么修改你的 PHP 配置以不加载文件。此外,/opt/php5这不是 Ubuntu 标准的 PHP 安装位置,所以你已经完成了某物习惯于机器——我首先会回顾一下你在那里做了什么的笔记。

相关内容