Strange PHP Warning (Unable to load dynamic library: no-debug-non-zts-20100525)-Collection of common programming errors
I temporarily set apc.enable_cli=1 in apc.ini, then run php -r “apc_clear_cache();” in the terminal to clear APC cache but this is what I got:
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
I’m running PHP-FPM 5.4.3, Nginx 1.3.1 and APC 3.1.10 on an Ubuntu Server 12.04 (VPS). Do you have any idea of what these errors mean?
-
The errors mean that the file
/opt/php5/lib/php/extensions/no-debug-non-zts-20100525/mcrypt.so
does not exist, while your PHP configuration wants to load it. Either make the file exist (again?), or modify your PHP configuration to not load the file. Also,/opt/php5
is not an Ubuntu-standard location for PHP installation, so you’ve done something custom to the machine — I’d start by reviewing your notes on what you did there.
Originally posted 2013-11-09 23:11:35.