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