Getting cURL to Work in XAMPP

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.


10 comments have been posted. You can leave a response, or trackback from your own site.

  1. 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.

  2. 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.

  3. Awesome! Thanks.

  4. Brilliant. Thanks for this.

  5. 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.

  6. @Magara, @Ewan, @Dao - Glad I could help!

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

  8. MAY NEED TO RESTART WINDOWS - ONLY RESTARTING APACHE MAY NOT BE ALL THATS NEEDED

  9. Using cURL with XAMPP…

    If you have read through this blog, you will realise that I am a big fan of the cURL library for PHP. Also, when using windows to code - I like to use the XAMPP package to give me easy access to an Apache, PHP and MySQL stack.
    So here is my quick guide…

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

Leave a comment