我在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。你知道这些错误是什么意思吗?
错误意味着该文件
/opt/php5/lib/php/extensions/no-debug-non-zts-20100525/mcrypt.so
不存在,而您的 PHP 配置想要加载它。使该文件存在(再次?),或者修改您的 PHP 配置以不加载该文件。此外,/opt/php5
它不是用于 PHP 安装的 Ubuntu 标准位置,因此您已经为机器做了一些定制的事情——我将首先回顾您在那里所做的笔记。