How to Enable CURL in WAMP?

CURL is not enabled by default in WAMP. Every php programmer have to use CURL to make remote connection.

The steps are as follows :

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

That will solve your Curl issues.
Enjoy!

Share

71 thoughts on “How to Enable CURL in WAMP?

  1. Pingback: Call to undefined function curl_init() - with WAMP - PHP Solutions - Developers Q & A

  2. Ks Sylonell

    Thanks! (Wamp 2.2)

    remove the ;. Yes, and click Wamp server icon/PHP -> PHP extensions -> click the php_curl.

  3. Pratik

    hey my friend
    i am using wampserver 2.2 in windows 8 64-bit
    my wamp server is running online very well but when i going to open localhost,at that time localhost is not opening in browser and browser shows that “This page is not available”

    and also when i try to put it offline at time it shows some error like “could not execute menu item(internal error)
    [Exception]Could not perform service action:This service has not been started”

  4. freeman

    replace the php.curl file in the php folder(under ext) of wamp, replace with an older version of php-5-4-0 if you are using 5.43 or so. instruction is here-http://www.o3n.org/2012/06/wamp-server-2-2-windows-7-64-bit-and-curl-also-for-windows-8/-

    “Santi
    Posted March 8, 2013 at 8:57 PM

    Thank you for this post. My situation was the same than Bruno: the one which worked was: http://www.anindya.com/php-5-4-0-x64-64-bit-for-windows/ (Wamp 2.2, Windows 7, PHP 5.4.3).
    Thanks a lot.

  5. Pingback: How to Enable CURL in WAMP? ← ALI - Blog

  6. om Post author

    I am glad this post is working for you guys.
    Thanks for looking into.

    Please keep reading!!

  7. Pingback: How to enable and use CURL to retrieve JSON in WAMP? | Noodle.Sup?

  8. Jatin Mankodiya

    Thanks buddy. its worked for me. If you are using wamp then you have to edit the file located at: \wamp\bin\apache\Apache2.2.17\bin\php.ini

  9. anonymous

    works great. Thanks. most often people does mistake to edit the 2nd php.ini you need to figureout which is the correct path and that can be easily done if you use http://localhost/?phpinfo=1 and search for “Loaded Configuration File” this gives the perfect locatio nthe nini file

  10. Jada'King Jr

    Hi forks I am trying to install Magento 1.6.1.0 in wamp server 2.1 in windows xp pro pack 3 and in next step of installing Localization Magento is requesting (PHP extension “curl” must be loaded. please set all required settings before clicking continue) and I have enabled php_curl in php.ini file
    Is anyone with idea to under beneath this.

    Thanks

  11. Trevor

    I am using XAMPP and having the same problem as George. It’s running on Windows 2008 R2 64 bit, and I’m suspecting it’s due to heightened security in Windows. Any ideas what I need to do to get it to work? Thanks!

  12. om Post author

    What type of server you are using WAMP, MAMP, XAMP ?

    Do you have php_curl.dll in your system ?

    Please check and let me know.

  13. george

    Not working for me even after restart.

    Fatal error: Call to undefined function curl_version() in E:\wamp\www\curl-check.php on line 3

  14. mehran

    hi i do the above changes,
    but still i got the same error
    like
    Fatal error: Call to undefined function curl_version() in C:\wamp\www\html\index1.php on line 11
    plz help me how i do it

Leave a Reply

Your email address will not be published. Required fields are marked *