PHP 5.0 can not load a dynamic module solution

xiaoxiao2021-03-06  141

When installing PHP 5.0, some friends will encounter "Unable to Load Dynamic Library 'c: / php/php_xxx.dll' prompt" Unable to load Dynamic Library 'c: / php/php_xxx.dll', although these dynamic modules can also be used, but these The function provided by the module is blessing. I summarized the causes and solving methods of this problem based on my own experience.

But you must first know how to install PHP 5.0 Apache MySQL normally. If you don't know how to install, please refer to the first phase of "PHP & more" e-magazine released by "Beyond PHP" website (http://down2.tech.sina. Com.cn/down/fdl/phpmore0716.zip), very detailed introduction to the installation method of PHP 5.0. After the above method, after the installation, if the apache is not launched, you can congratulate you, you can play.

If the prompt cannot load some dynamic modules, you will look down.

The following assumptions the PHP path is C: / PHP reasons 1: The corresponding DLL file is missing in the C: / PHP / EXT / directory. Solve: PECL-5.0.2-win32.zip should be downloaded and extracted to this directory.

Cause 2: No DLL files under the C: / PHP root directory to the C: / Windows / System32 / directory. Solve: I know that there is no request to copy all the DLL to the System32 directory in the installation tutorial, but it should be copied. These DLLs are first accessible when loading a dynamic module, without them, c: / php / ext / The php_xxx.dll in the catalog is not available. (Do not copy the DLL under the C: / PHP / EXT / DLL to the System32 directory, just waste your hard drive)

Cause 3: C: / PHP / root directory minus a libmcrypt.dll file and cannot load php_mcrypt.dll. Solve: I don't know if it is why, there is no such thing in the PHP5.0 installation package. Everyone wants yourself (http://ftp.emi.dk/pub/php/win32/mcrypt/libmcrypt.dll), After downloading, you can copy it to the System32 directory.

Restart Apache and get it.

Of course, if you don't need to use these dynamic modules, you can tell you about the corresponding DLL in php.ini, so that Apache will not have annoying prompts.

转载请注明原文地址:https://www.9cbs.com/read-99885.html

New Post(0)