How to load php_curl.dll module in Apache – fixing Unable to load dynamic library

By: Kevin | June 9, 2014

While setting up my development environment I ran into a situation where I needed to use the php_curl.dll module to make http requests. However I kept getting the following error message from Apache in the error.log:


PHP Warning: PHP Startup: Unable to load dynamic library ‘C:\\PHP\\ext\\php_curl.dll’ – The specified module could not be found.\r\n in Unknown on line 0


My Environment:

Windows 7 64-bit

Apache 2.2.2

PHP 5.3.25


A Google search revealed that curl is dependent on two other files. Requires: libeay32.dllssleay32.dll (bundled) Source here. OK great, I need those two files, but the documentation doesn’t say anything else. The Bundled only hinted that I already have these files, and I did. So I looked in the root of my installation location of PHP and voila. However, obviously this still wasn’t doing the trick. This is what I did to get php_curl.dll module loaded in Apache.


1. Uncomment php_curl.dll in your php.ini file.

2. Copy  libeay32.dll and ssleay32.dll from the root of your PHP folder then paste them into the bin subdirectory in Apache

3. Restart Apache services.

4. Call phpinfo() and make sure cUrl was loaded properly.

Presto! You should be hooked up! Happy cUrling!