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

藏色散人
Release: 2023-03-08 10:58:02
Original
2164 people have browsed it

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
Copy after login

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
Copy after login

to this

; Enable mcrypt extension module extension=mcrypt.so
Copy after login

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!

Related labels:
php
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!