IBM i Zend Server 7 - Unable to load dynamic library '/usr/local/zendsvr6/lib/php_extensions/'


This article is now available in our new knowledge base:  IBM i Zend Server 7 - Unable to load dynamic library '/usr/local/zendsvr6/lib/php_extensions/'


This error is seen in the php.log file:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/zendsvr6/lib/php_extensions/' -
0509-022 Cannot load module /usr/local/zendsvr6/lib/php_extensions/
    0509-021 Additional errors occurred but are not reported. in Unknown on line 0


Zend Server for IBM i version 7 running on any version of IBM i


This is just a warning error and may safely be ignored. It is easy to fix, though.

From a 5250 command line:

edtf '/usr/local/zendsvr6/etc/conf.d/curl.ini' 

Find the first line in the file (usually the only line in the file): 

Insert a semicolon in the first position and press enter to comment out the line:


Use F3 twice to save and exit.


Starting with version 7, the curl extension is compiled into the core rather than loaded as a dynamic extension.  However, the curl.ini file still has the line to load the module dynamically.  This external module is no longer needed, so it does not exist.  This causes the warning.