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

后端 未结 2 1346
天涯浪人
天涯浪人 2020-12-29 05:45

When I run the command

php -v

this error comes up

PHP Warning: PHP Startup: Unable to load dynamic library \'/usr/

相关标签:
2条回答
  • 2020-12-29 06:29

    Buddy, I had the same issue. Just goto your /etc/php/7.*/cli/php.ini file and comment out extension=modulename. This solution is for php version 7+.

    Up-vote will be appreciated.

    0 讨论(0)
  • 2020-12-29 06:47

    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.

    0 讨论(0)
提交回复
热议问题