Php
奇怪的 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。你知道這些錯誤是什麼意思嗎?
錯誤意味著該文件
/opt/php5/lib/php/extensions/no-debug-non-zts-20100525/mcrypt.so
不存在,而您的 PHP 配置想要載入它。要麼使文件存在(再次?),要麼修改您的 PHP 配置以不載入文件。此外,/opt/php5
它不是用於 PHP 安裝的 Ubuntu 標準位置,因此您已經對機器進行了一些自定義操作——我將首先查看您在此處所做操作的註釋。