Thursday, August 23, 2012

WAMP and PHP's cURL Windows 7 x64 bit

I came across, yet another, issue with WAMP server (I'm beginning to question the usability of this application.)

Anyhow; the error I received, even after enabling the php_curl.dll extension, was the following:

'unable to load dynamic library php_curl.dll'

When I checked the Apache error log, I was shown this:


Warning:  PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.13/ext/php_curl.dll' - The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail. in Unknown on line 0.



The fix was to replace the php_curl.dll file in C:\wamp\bin\php\php5.3.13\ext with one of the following:


php_curl-5.3.13-nts-VC9-x64.zip
php_curl-5.3.13-VC9-x64.zip
php_curl-5.4.3-nts-VC9-x64.zip
php_curl-5.4.3-VC9-x64.zip



Credits go to the owner of this blog (Thank you!): http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/