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

1

20

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)

Ollieollis answered 21/5, 2013 at 19:2 Comment(2)
Have you checked if the file is actually there?Rummer
Yes I did, there was no such file.Ollieollis
O
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.

Ollieollis answered 21/5, 2013 at 19:2 Comment(2)
in addition, mcrypt.so is also added into php.ini and you need to comment it out from there and only leave it active in /etc/php.d/mcrypt.iniMatroclinous
The directory /etc/php.d does not exist!Attorney

© 2022 - 2024 — McMap. All rights reserved.