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

this error come up while running a shell script to get the parameter from php file

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 

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

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: