{"id":990,"date":"2022-08-30T15:10:33","date_gmt":"2022-08-30T15:10:33","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/strange-php-warning-unable-to-load-dynamic-library-no-debug-non-zts-20100525-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:10:33","modified_gmt":"2022-08-30T15:10:33","slug":"strange-php-warning-unable-to-load-dynamic-library-no-debug-non-zts-20100525-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/strange-php-warning-unable-to-load-dynamic-library-no-debug-non-zts-20100525-collection-of-common-programming-errors\/","title":{"rendered":"Strange PHP Warning (Unable to load dynamic library: no-debug-non-zts-20100525)-Collection of common programming errors"},"content":{"rendered":"<p>I temporarily set apc.enable_cli=1 in apc.ini, then run php -r &#8220;apc_clear_cache();&#8221; in the terminal to clear APC cache but this is what I got:<\/p>\n<pre><code>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\nPHP 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\nPHP 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\nPHP 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\nPHP 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\n<\/code><\/pre>\n<p>I&#8217;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?<\/p>\n<ol>\n<li>\n<p>The errors mean that the file <code>\/opt\/php5\/lib\/php\/extensions\/no-debug-non-zts-20100525\/mcrypt.so<\/code> 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, <code>\/opt\/php5<\/code> is not an Ubuntu-standard location for PHP installation, so you&#8217;ve done <em>something<\/em> custom to the machine &#8212; I&#8217;d start by reviewing your notes on what you did there.<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2013-11-09 23:11:35. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I temporarily set apc.enable_cli=1 in apc.ini, then run php -r &#8220;apc_clear_cache();&#8221; in the terminal to clear APC cache but this is what I got: PHP Warning: PHP Startup: Unable to load dynamic library &#8216;\/opt\/php5\/lib\/php\/extensions\/no-debug-non-zts-20100525\/mcrypt.so&#8217; &#8211; \/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: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-990","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/990","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=990"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/990\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=990"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}