Startup: Unable to load dynamic library '/usr/lib/php/modules/module.so'

℡╲_俬逩灬. 提交于 2019-11-29 02:24:05

问题


When I run the command

php -v

this error comes up

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 in Unknown on line 0 PHP 5.3.3 (cli) (built: Feb 22 2013 02:37:06)


回答1:


This is cause by mcrypt extension.

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:

mini

If the directory /etc/php.d does not exist – it seems You don`t have php installed or file mcrypt.ini is in different location. Try work around.



来源:https://stackoverflow.com/questions/16677558/startup-unable-to-load-dynamic-library-usr-lib-php-modules-module-so

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!