The inability to load the php dynamic library is caused by the mcrypt extension. The solution: first find and open "/etc/php.d/mcrypt.ini"; then modify "extension=mcrypt.so" that is Can.
The operating environment of this tutorial: Windows 7 system, PHP version 5.3.3, Dell G3 computer.
Specific questions:
Startup: What should I do if the dynamic library '/usr/lib/php/modules/module.so' cannot be loaded?
When I run the command
php -v
This error appears
PHP warning: PHP startup: Unable to load dynamic library '/usr/lib/php/modules/module.so ' - /usr/lib/php/modules/module.so: cannot open shared object file: No such file or directory at unknown line 0 PHP 5.3.3 (cli) (built: Feb 22 2013 02:37: 06)
[Recommended learning: "PHP Video Tutorial"]
Solution:
This is extended by mcrypt caused.
Edit /etc/php.d/mcrypt.ini
and change
; Enable mcrypt extension module extension=module.so
to this
; Enable mcrypt extension module extension=mcrypt.so
edit
if directory /etc/php.d does not exist - it looks like you don't have php installed or the file mcrypt.ini is in a different location.
The above is the detailed content of What should I do if the php dynamic library cannot be loaded?. For more information, please follow other related articles on the PHP Chinese website!