PHP cURL not working - WAMP on Windows 7 64 bit

PhpCurlWamp

Php Problem Overview


I got my WAMP installed on my windows 7 64bit. cURL is not working, but still I got it enabled from the WAMP tray.

I have also uncommented extension=php_curl.dll in php.ini for both the PHP and Apache folder.

Windows give me an error message,

> PHP Startup: unable to load dynamic library 'c:/wamp/bin/php/php5.4.3/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-lin sxstrace.exe tool for more detail."

How can I fix this problem?

Php Solutions


Solution 1 - Php

Go to http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/ and download the cURL version that corresponds to your PHP version under "Fixed curl extensions:".

So if you have PHP 5.3.13, download "php_curl-5.3.13-VC9-x64.zip". Try the "VC" version first. Then replace the php_curl.dll in ext folder. This worked for me.

Solution 2 - Php

I had the same exact issue. After trying almost everything and digging on Stack Overflow, I finally found the reason. Try downloading "fixed curl extension" separately from PHP 5.4.3 and PHP 5.3.13 x64 (64 bit) for Windows.

I've downloaded "php_curl-5.4.3-VC9-x64", and it worked for me. I hope it helps.

Solution 3 - Php

Works for me:

  • Go to this link
  • Download php_curl-5.4.3-VC9-x64.zip under "Fixed curl extensions:"
  • Replace the php_curl.dll file in the ext folder.

This worked for me.

Solution 4 - Php

I have struggled a lot with this myself.. In the end, PHP version 5.3.1 with Apache 2.2.9 worked...

I was getting the consistent error of missing php5.dll. For this, I renamed all the old php.ini files which are not required (outside of the WAMP folder) to old_ohp.ini.

Solution 5 - Php

The error is unrelated to PHP. It means you are somehow relying on Apache's mod_deflate, but that Apache module is not loaded. Try enabling mod_deflate in httpd.conf or commenting out the offending line (search for DEFLATE in httpd.conf).

As for the PHP curl extension, you must make sure it's activated in php.ini. Make sure extension_diris set to the directory php_curl.dll is in:

extension_dir = "C:/whatever" and then add

extension=php_curl.dll

Solution 6 - Php

The steps are as follows:

  1. Close WAMP (if running)
  2. Navigate to WAMP\bin\php\<your version of PHP>
  3. Edit file php.ini
  4. Search for curl, uncomment extension=php_curl.dll
  5. Navigate to WAMP\bin\Apache\<your version of Apache>\bin\
  6. Edit file php.ini
  7. Search for curl, uncomment extension=php_curl.dll
  8. Save both
  9. Restart WAMP

Solution 7 - Php

I think cURL doesn't work with WAMP 2.2e. I tried all your solutions, but it still did not work. I got the previous version, (2.2d) and it works.

So just download the previous version :D

Solution 8 - Php

Well, just uninstall WAMP 64-bit and go with the 32-bit version. It worked in my case.

Solution 9 - Php

This is how I've managed to load CURL correctly. In my case php was installed from zip package, so I had to add php directory to PATH environment variable.

Solution 10 - Php

Ensure that your system PATH environment variable contains the directory in which PHP is installed. Stop the Apache server and restart it once more. With luck CURL will start working.

Solution 11 - Php

This work for me: http://www.mediafire.com/?3ay381k3cq59cm2 download a paste the file in ext folder PHP 5.4.3

Solution 12 - Php

I had the problem with not working curl on win8 wamp3 php5.6. Reinstalling wamp (x64 version as I had x64 in system info) made it work fine.

Solution 13 - Php

uncomment "curl=cainfo" in the php.ini document This helped me when installing Prestashop when all other methods still did not work.

Solution 14 - Php

This is what worked for me

Answered by Soren from another SO thread - https://stackoverflow.com/questions/693385/curl-for-wamp?rq=1

"There seems to be a bug somewhere. If you are experiencing this on Win 7 64 bit then try installing apache addon version 2.2.9 and php addon version 5.3.1 and switching to those in WAMP and then activating the CURL extension. That worked for me."

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionwill.i.amView Question on Stackoverflow
Solution 1 - PhpsublucentView Answer on Stackoverflow
Solution 2 - PhpFarzan BalkaniView Answer on Stackoverflow
Solution 3 - PhpmpgnView Answer on Stackoverflow
Solution 4 - PhpmjsView Answer on Stackoverflow
Solution 5 - PhpSuresh Kumar AmraniView Answer on Stackoverflow
Solution 6 - PhpjohnpaulView Answer on Stackoverflow
Solution 7 - PhpflaironView Answer on Stackoverflow
Solution 8 - Phpfarhan ahmedView Answer on Stackoverflow
Solution 9 - PhpLixasView Answer on Stackoverflow
Solution 10 - PhpTerry LinView Answer on Stackoverflow
Solution 11 - Phpkemado77View Answer on Stackoverflow
Solution 12 - PhpFankyView Answer on Stackoverflow
Solution 13 - PhpEmmanuel EdwardView Answer on Stackoverflow
Solution 14 - PhpAbhishek RakshitView Answer on Stackoverflow