Home  >  Article  >  Backend Development  >  What should I do if the php dynamic library cannot be loaded?

What should I do if the php dynamic library cannot be loaded?

藏色散人
藏色散人Original
2021-03-01 09:14:442199browse

The inability to load the php dynamic library is caused by the mcrypt extension. The solution: first find and open "/etc/php.d/mcrypt.ini"; then modify "extension=mcrypt.so" that is Can.

What should I do if the php dynamic library cannot be loaded?

The operating environment of this tutorial: Windows 7 system, PHP version 5.3.3, Dell G3 computer.

Specific questions:

Startup: What should I do if the dynamic library '/usr/lib/php/modules/module.so' cannot be loaded?

When I run the command

php -v

This error appears

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

[Recommended learning: "PHP Video Tutorial"]

Solution:

This is extended by mcrypt caused.

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

if directory /etc/php.d does not exist - it looks like you don't have php installed or the file mcrypt.ini is in a different location.

The above is the detailed content of What should I do if the php dynamic library cannot be loaded?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn