h4x3d.com

- h4x3d.com

libcurl for WAMP / cURL for WAMP

wamp server libcurl

If you like to develop websites locally on your Windows machine and use WAMP (Windows Apache MySql PHP),
but stumble to get some plugins in WordPress going and you get the error “Your server is crap you need libcurl/cURL for apache”, do the following

  • [x] download and install libcurl / curl for windows: Go to http://curl.haxx.se/download.html and scroll down to ‘Windows’, grab the “libcurl” not “binary”, e.g. This file for Windows XP/2000
  • [x] Paste the zip file content into C:\wamp\bin\apache\apache2.2.6
  • [x] Locate and open your php.ini file (resides in C:\wamp\bin\php\php5.2.5)
  • [x] In your php.ini file, change/ uncomment the following line:
  • [x] ;extension=php_curl.dll (you do so by removing the semi-colon)
  • [x] Finally, you need to restart Apache or the whole server if you care
  • [x] ENJOY!
41 comments
  1. Author

    Thanks so much for posting this information, it took me two minutes to get this running!

  2. Ken Chase says:
    Author

    On my system php.ini is located in the following directory:

    wamp\bin\apache\apache2.2.6\bin

  3. Vlad Rafeyev says:
    Author

    My php.ini was located in different location:

    D:\wamp\bin\apache\apache2.2.8\bin\php.ini

  4. tynamite says:
    Author

    I was going to be nooby and say “It doesn’t work” after restarting the server three times untill I held shift then clicked Reload to reload the page and clear the cache. I was using Safari. The trick works in all browsers.

  5. Ben Steed says:
    Author

    Thanks–this was a big, quick help.

  6. sikanrong says:
    Author

    Man, it always bumms me out if i show up to a site called haxed, and it’s about windows.. :(

    For shame.

  7. jez says:
    Author

    @sikanrong: I dont get your comment, can you please be more detailed? (wtf?)

  8. Andy Potanin says:
    Author

    Very good post, thank you!

  9. yodude says:
    Author

    pretty neat my bad…
    but would u know how to upgrade an already intalled curl version 7.16 to 7.19.x ?
    Tried the obvious: download dlls ( libcurl , libeay32 , libssl32) and pasting them into /apache/bin/ and into /windows/system32/
    restarterd ma wamp server and nothing…. phpinfo() still show curl version 7.16

    best

  10. Author

    Nice post, we used this article as a reference for one of our clients. They managed to update their touch-screen kiosk with no hassles.

  11. Jake says:
    Author

    i dont think pasting the libcurl is necessary, just un commenting curl ext in php.ini is sufficient, php_curl is not linked to libcurl.

  12. marcus says:
    Author

    Hi. I was sent to this site fro joomla with a problem getting my site to show in front page, the message I received was (Fatal error: Call to undefined function curl_init() in C:\xampp\htdocs\joomla15\modules\mod_rokweather\googleweather.class.php on line 225 )
    I have been advised to install the file from this post but I see that it is for WAMP I am using XAMPP DOSE THIS MAKE ANY DIFFERENCE and WILL IT STILL WORK. I am a newbie and this is my first site. Thanks in advance for any help.

  13. marcus says:
    Author

    Sorry to post again but I could not find a edit button on my earlier post. I have tried to follow the instructions given at your site but as I went to copy past the downloaded files into the folder I find that I am missing the last file, I can only find C:\xampp\apache\bin but not
    C:\wamp\bin\apache\apache2.2.6 , in the other file C:\xampp\php there is only one file inside named php and when I double click I get a comand prompt box that has C:\xampp\php\php.exe , hope this information will help

  14. Zhoemar says:
    Author

    Thanks for the good post. I’ve already install the curl. But I don’t know how to setting up curl with cron job in WAMP.
    Could you please telling me ?
    Thanks before.

  15. mr says:
    Author

    same prob again….

  16. Author

    Nice one!

    Worked a treat on apache 2.2.8 using wamp and the 7.19.7 libcurl version.

  17. jez says:
    Author

    yodude, sorry cant really help you with that, did you find a solution yourself?
    i have had no trouble with that yet :/

  18. jez says:
    Author

    hello jake,
    thanks for sharing your knowledge,
    I am sure others will benefit from your comment, cheers again

Submit comment