Getting cURL to Work in XAMPP

10:24 PM Jan 22nd 2007 from web under ,

Simple yet effective.

  1. Go to xampp install directory.
  2. Go to php.ini in php directory.
  3. Open php.ini and find curl, uncomment the first find you see. Save and close file.
  4. Go to php.ini in apache directory.
  5. Repeat Step Three.

Done.

Reader Comments

Show all comments
  1. Linda Jobs says:

    many thanks dude for very simple but useful tip! You saved my time a lot.

  2. Raja says:

    Wonderful !!!! You Have Done Your Job Beautifully !!!! Keep It Up…..

  3. Parry says:

    Thanks a ton! Lot of results on the web, but nothing worked. It seems like they are not aware of multiple php.ini present. Yours worked for me perfectly!

  4. Thanks! It works! :D

  5. Dan Hall says:

    Thanks, very simple and it worked.. Now able to to run cURL from my home box… saves a lot of time of time.

  6. santosh says:

    thanx alot. small tips but of great value. I was able to successfully install moodle due to your valuable suggestion

  7. Jamal says:

    That was brilliant, it works :-)

  8. robert says:

    Awesome!!!

  9. joel says:

    Thanks and I didnt find php.ini file inside apache/bin. I got curl without changing anything inside apache dir……….Thanks again

  10. joel says:

    Thanks man, it works..

  11. windows XP SP 3 – with the 2009 August XAMP the ini is only in the php folder (makes sense) after uncommenting i registgered the dlls in the windows folder (after copying them from the xamp\php folder) ….

    also added the php folder with all the dlls and the apache/bin to my System Path var

    but no curl!

    now restarting PC!

  12. Perfect, thank you.

    I expect restarting Apache would be required more often then not. It was for me, so might be worth adding it to the list just to avoid confusion.

  13. uza' says:

    Thanks “Jose Merlin”

  14. Astorino says:

    Thanks so much. Saved me a lot of time….

  15. Seong says:

    - in php\php.ini, extension=php_curl.dll was already uncommented.
    - I don’t see php.ini in Apache directory
    - I don’t see also *libcurl* named files.
    - I’m getting “Warning: include_once(simple_html_dom.php) [function.include-once]: failed to open stream: No such file or directory in ” message in my browser.

  16. Mirza Fariad says:

    Dear Sir, Thanks verymuch for this post. It make my work faster as to being download curl and deploying and install was a big work.

    But i have problem i did’nt find any php.ini file in apache.. But i made a change in php folder.

  17. C says:

    Thanks a ton!

  18. Anwar says:

    Thanks man ! I enjoyed it a lot .

  19. Vishnu says:

    How to install curl in xampp on linux

  20. Roberto says:

    Muchas gracias!

  21. Chris says:

    Thanks so much. Saved me a lot of time.

  22. Sameer Arora says:

    Excellent Post, I got it kicking in less than 2 min

    Thanks !

  23. Rocklion says:

    Thanks man, it worked.
    P.S.: The cURL library is included in xampp, you need only to uncomment the requested lines in the configuration files. Happy coding ;)

  24. sXe says:

    Thanks man! ;)

  25. Jose Merlin AR says:

    Please follow the steps for curl:

    1. Locate XAMPP install directory
    2. open php/php.ini
    3. do a search for the word ‘curl’ and uncomment (remove the leading semicolon) that line
    4. save & close
    5. open apache/bin/php.ini
    6. search for curl, uncomment as before
    7. save & close
    8. restart apache

  26. Gabriel says:

    Hi Progress – Gosh, Im not sure what WHMCS is, but it sounds like you need to have SSL support running as well, which is also an Apache mod like cURL. Do you have OpenSSL running? You may need to get both running, then shut down XAMPP and restart it. Let me know if any of this helps.

  27. Progress says:

    I also did what u say.. … uncommented but still it says “You must have CURL installed with SSL Support for WHMCS to function correctly” ….

    any help with this problem?

  28. Murali Krishna K says:

    Thanks for this simple steps … helped a lot.

  29. Ahmad says:

    Thnx very much , this post help me alot THANKS !b

  30. norm says:

    MAY NEED TO RESTART WINDOWS – ONLY RESTARTING APACHE MAY NOT BE ALL THATS NEEDED

  31. Jodi says:

    Thanks for this post! Now I don’t have to dig through pages of text or forums! Yay!

  32. Gabriel says:

    @Magara, @Ewan, @Dao – Glad I could help!

  33. MAGARA says:

    Just Briliant. I have been pacing around trying to figure out how to get this working until i came across your awsome post. Many thanks.

  34. Ewan says:

    Brilliant. Thanks for this.

  35. Gabriel says:

    hi jonah, curl is a module in php, identified by libcurl. In XAMPP, this comes pre-packaged, but not pre-installed. You may want to try restarting your XAMPP server, via xampp-control.exe which should be in your xampp root directory.

  36. johan says:

    Do you have to install curl or does it come with XAMPP?

    I did phpinfo() and curl doesn’t show up, even though I uncommented it as you directed.

    Thanks if you can help.

Leave a Reply