PHP startup prompt: Unable to load dynamic library php_curl.dll

Source: Internet
Author: User
Tags curl php windows

This problem occurs easily when PHP is configured. After curl extension is correctly enabled in php. ini, no relevant information is displayed in PHPINFO, and Apache logs display the following errors:

PHP Warning: PHP Startup: Unable to load dynamic library 'd: \ DEV \ ENV \ php-5.3.10 \ ext \ php_curl.dll '-Unknown in Unknown on line 0

What causes this problem?

The answer is that the curl extension depends on the library file, just like installing the dependent Library when compiling PHP in Linux.

The page for installing extension libraries under Windows in the PHP official manual has been detailed with all PHP extension files dependent on those libraries. Specifically, the following content ( is prompted)


Some extension libraries require additional DLL to work. Some of them are included in the release package, PHP 4 is under the C: phpdlls Directory, PHP 5 is under the main directory, but there are some, such as Oracle (php_oci8.dll) the required DLL is not bound to the release package. If PHP 4 is installed, copy the bound DLL from C: phpdlls to the main directory C: php. Don't forget to put C: php in the system PATH


In the introduction on the page, we can find that the curl extension depends on the libeay32.dll and ssleay32.dll libraries. These two files are already attached to the PHP Windows package. We do not need to download them separately. after figuring out this, the solution is simple: let Windows or Apache load the two dll files smoothly. Below I will list several solutions.

Solution 1 copy libeay32.dll and ssleay32.dll to the c: windowssystem32 folder.

Solution 2: add the directory of your PHP program to the PATH variable of the system.

Solution 3 if you are using an Apache server and using a module to run PHP, you can go to httpd. before loading the configuration statement of the PHP module in conf, add the following two sentences to let Apache load the two dll. 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"

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: 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.