PHP boot prompt Unable to load dynamic library Php_curl.dll What to do _php tutorial

Source: Internet
Author: User
Tags php website php windows
PHP boot prompt Unable to load dynamic library Php_curl.dll What to do, let's see the solution.

This problem is easy to hand with PHP, when the curl extension in php.ini correctly opened, but in the phpinfo do not see the relevant information, and Apache's log will show the following error:

PHP warning:php startup:unable to load Dynamic Library ' D:\DEV\ENV\php-5.3.10\ext\php_curl.dll '-xd5xd2xb2xbbxb5xbdxd6 Xb8xb6xa8xb5xc4xc4xa3xbfxe9xa1xa3rn in Unknown on line 0

What is the cause of this problem?

The answer is that the curl extension relies on the library file, just as it would be necessary to install a dependent library when compiling PHP under Linux.

In the PHP website Manual of the installation of the extension library on the page has been detailed annotated php all the extension files depend on those libraries. In particular, the following information is indicated (http://php.net/manual/zh/install.windows.extensions.php)


Some extension libraries require additional DLLs to work. Some of these are included in the release package, PHP 4 in the C:phpdlls directory, PHP 5 in the home directory, but there are some, such as Oracle (Php_oci8.dll) required DLLs are not bound in the release package. If you install PHP 4, copy the bound DLL from C:phpdlls to the home directory c:php. Don't forget to put the c:php in the path to the system.

In the introduction of the page, we can query to curl extension dependent Libeay32.dll, ssleay32.dll the two library files, these two files are attached to the PHP Windows package, we do not need to download separately. Figuring this out, the solution is simple: let Windows or Apache load into this 2 DLL file, and I'll list a few solutions.

Scenario 1 copy libeay32.dll, Ssleay32.dll to C:windowssystem32 folder

Scenario 2 Add the directory of your PHP program to the system's PATH variable

Scenario 3 If you are using an Apache server and use a module to run PHP, you can load the PHP module's configuration statement in httpd.conf with the following two words let Apache to load these two DLLs, the example is as follows:

The code is as follows Copy Code

LoadFile "D:devenvphp-5.3.10ssleay32.dll"
LoadFile "D:devenvphp-5.3.10libeay32.dll"

LoadModule php5_module "D:devenvphp-5.3.10php5apache2_2.dll"

http://www.bkjia.com/PHPjc/632185.html www.bkjia.com true http://www.bkjia.com/PHPjc/632185.html techarticle php boot Prompt Unable to load dynamic library Php_curl.dll What to do, let's look at the solution oh this problem is easy to hand with PHP when it appears, in the php.ini correctly opened the Curl extension ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.