Enabling curl on XAMPP
You will need to change all of the following files in order for XAMPP to accept the Apache configuration setting for PHP.

You will need to change all of the following files in order for XAMPP to accept the Apache configuration setting for PHP.

RSS feed for comments on this post. TrackBack URI
Sorry, the comment form is closed at this time.
Thanks, really appreciate this simple post!
Comment by Anup — 19 August, 2006 @ 11:49
I must have spent an hour doing a google search, then changing a config, then reading the documentation, then changing some more, then googling, and changing SOME more… You get the idea of the magnitude of my annoyance. I was about to remove XAMPP and do a proper install. Glad it helped!
Comment by Roman — 22 August, 2006 @ 8:51
thanks alot mate, very simple, very good
tom
Comment by tom — 29 October, 2006 @ 10:48
but still my curl not working. Is there any more alternate way to solve this problem?
Comment by uzzal — 10 November, 2006 @ 22:43
Really great!!
I also spend hours on googling for that problem….and here’s that simple solution!
Comment by Axel — 13 November, 2006 @ 19:09
Uzzal: sorry nothing comes to mind other than fully removing your XAMPP installation perhaps and installing the parts one by one. It may be easier than you think, give it a try.
Good luck.
Others: thank you all for comments! Seems like the post which took me the shortest time to compose turns out to be the hottest one.
Comment by Roman — 15 November, 2006 @ 12:04
brilliant! thank you!
Comment by marc — 19 November, 2006 @ 22:03
Great post. It was so easy at last!! Thanks so much
Comment by tomak — 23 November, 2006 @ 22:32
Thanks…what a pain…i searched for ever trying to find where the problem was. Why are there so many php ini files and is it possible to symbolically link them in windows so you only have to adjust one! -thx
Comment by Brad — 4 December, 2006 @ 1:15
Thanks! It really helped!
Comment by Anne — 9 December, 2006 @ 21:09
Thanks. It really solves my problem.
Comment by vinhnguyen — 18 December, 2006 @ 5:24
Many Thanks. Searching for half an hour and nothing worked. Trying this and now everything is doing fine.
Comment by blackmilan — 22 December, 2006 @ 17:18
Many thanks - excellent help
Comment by Mark — 28 December, 2006 @ 20:24
About ppc…
Cheap ppc…
Trackback by Ppc — 7 January, 2007 @ 3:58
Comment by Candace — 8 January, 2007 @ 0:35
What changes should be made in these file to enable cURl?
Please help
Thanks & Regards,
jsh
Comment by joel — 18 January, 2007 @ 9:25
Thanks a lot. Good job.
Comment by Aledoo — 30 January, 2007 @ 21:23
Thank you so much!
God, you saved me a good 2 hours
Comment by hermann — 3 February, 2007 @ 17:46
This really helped me. Thanks a lot !!!
Comment by Mansoro — 7 February, 2007 @ 17:15
Nice! Thanks, this helps me out a lot.
P.S. For Xampp I didn’t see any changes that needed to be made in the browscap.ini file. It worked without modifing that file.
Comment by row — 8 March, 2007 @ 19:46
thanks much mate! after a lot of frustration with trying to get PHP working with XAMPP, this came as a relief just when I was about to give up.
Comment by sid — 28 March, 2007 @ 2:08
xamplite does not have the php4 and php5 files
browcap.ini should be ok
just uncomment curl in the (apache and php folders) php.ini
don’t forget to restart apache when done
I’m a novice but that worked for me
Comment by Jeremy — 11 April, 2007 @ 23:54
Does XAMPP come with curl or do you still have to download it?
Comment by jonah — 16 April, 2007 @ 8:14
I think it does. Actually I’ve seen XAMPP on portableapps.com. Incredible you can now run a full-blown server off of a USB stick…
Comment by Roman — 20 April, 2007 @ 10:50
You don’t have to find each php.ini file on your Windows XP. Search for ‘php*.ini’, select all files, press ‘Enter’ key, search ‘curl’ on from each ini file and remove the ‘;’ character. I know you already know how to do this but I’ve heard a lot complaints from the comments above.
Comment by Jhourlad Estrella — 27 April, 2007 @ 9:18
Just what I was looking for! Thanx!!!
Comment by videoguy — 8 May, 2007 @ 16:33
[...] menyhart.net : blog » Enabling curl on XAMPP [...]
Pingback by Daily misery » Blog Archive » Links for 5.20.2007 — 21 May, 2007 @ 2:31
Perfect!
Comment by Travis — 12 June, 2007 @ 12:02
thanks dude, you saved my day!
Comment by izzy — 13 June, 2007 @ 13:56
i dont understand what do i need to change in those files and change it to what?
Comment by jerry — 23 June, 2007 @ 3:09
Thank u so much, its really helped me a lot
Comment by Gopi perumalla — 25 June, 2007 @ 12:45
Hi Jerry, a simple way to enable PHP cURL Support = ON for xampp:
xampp > apache > bin
open php.ini
ctrl + F and find php_curl
remove the “;” from “;extension=php_curl.dll”
Save it, close it.
Open XAMPP Control Panel Application, stop “Apache”, then start “Apache” again. [To restart "Apache"]
Done.
It works for mine, hope it works the same for yours. Good luck!
Comment by Lee Yi Cong — 1 July, 2007 @ 7:00
Do like #25 said, find all the PHP files.
On “xampp-win32-1.6.2-installer.exe” you will Have 4 php files to edit:
C:\xampp\apache\bin\php.ini
C:\xampp\php\php.ini
C:\xampp\php\php4\php.ini
C:\xampp\php\php4\php4.ini
Open the files one at a time With “Notepad++” Press Ctrl F And search\Find “cUrl”, You will See “;extension=php_curl.dll” all you have to do is REMOVE THE ” ; ” from all 4 files Make them: extension=php_curl.dll
And Restart The Xampp Server.
Now Curl Support will be on.
Comment by Eddie — 12 July, 2007 @ 15:05
Hi,
Really its great help to US…..Thanks Lot.
Comment by Kumar J — 20 July, 2007 @ 14:22
#32 worked for me. Thanks!
Comment by Kevin — 1 August, 2007 @ 23:46
You rock, saved me a bundle of time!
Comment by Pascal — 23 August, 2007 @ 0:52
lol that simple tutorial helps me a lot. thanks mate. anyways, what to change in browscap.ini?
Comment by Suhaimi — 24 August, 2007 @ 19:49
Echoing most everybody else’s comments…THANK YOU… I too was about to wipe out XAMPP and download PHP built with CURL, but uncommenting the curl.dll for each of these files worked just fine. THANK YOU
Comment by Aaron — 5 October, 2007 @ 2:29
Great!!!!! Simply GREAT!!! I am a fan of XAMPP and I didn’t want to remove it. Your solution worked very fine!
Thanks.
Comment by Mohammad Sajjad Hossain — 26 October, 2007 @ 7:08
Thanks for this. Worked like a charm.
Comment by Nyssa — 8 November, 2007 @ 4:00
Only the first file is necessary to change
Comment by dab — 10 December, 2007 @ 18:16
Thanks to #32 (Lee Yi Cong) curl is up and running, cheers!
Comment by Jonathan Harriot — 10 December, 2007 @ 23:23
[...] Random note: I needed to install cURL on my Windows box install of XAMPP and found a handy comment on Roman’s blog that did the trick. It’s also been installed on my LAMP box as well but that was easy enough to install and required no Google research. Navigate to XAMPP > apache > bin Open php.ini Find “php_curl” Remove the “;” from “;extension=php_curl.dll” Save and close it. Restart Apache via Control Panel > Administrative Tools > Services and you are done! [...]
Pingback by How I Spent My Winter Vacation | For Your Lungs Only — 11 December, 2007 @ 2:34
very interesting, but I don’t agree with you
Idetrorce
Comment by Idetrorce — 16 December, 2007 @ 4:09
Thanks buddy,these guide helped a lot.
Comment by pckabeer — 18 December, 2007 @ 6:29
thanx alot guys , this post is perffectlly amazing
Comment by sagiv — 23 December, 2007 @ 0:45
*** IF YOU’VE MADE THE INI CHANGE AND STILL HAD NO LUCK ***
Try rebooting your machine. - I beat my head against the wall for a couple of hours (after making the change before even STARTING to look online) and finally tossed in the towel and gave it the three-finger salute and it magically started working.
*** SIMPLY RESTARTING APACHE MAY NOT BE _ALL_ THATS NEEDED ***
Comment by norm — 7 January, 2008 @ 19:09
Thanks fella
This tip was really useful. I think XAMPP developers should think about having a control panel for enabling and disabling extensions. That would make it easy for developers. EasyPHP has such an interface.
And by the way… I didn’t edit browsecap.ini and my CURL is enables. Only the php*.ini files are to be edited.
Comment by Akash Xavier — 1 February, 2008 @ 6:12
[...] <a href=”http://www.menyhart.net/blog/developer-stuff/enabling-curl-on-xampp/” rel=”nofollow”>http://www.menyhart.net/blog/developer-stuff/enabling-curl-on-xampp/</a> [...]
Pingback by Using cURL with XAMPP | Edmonds Commerce Blog — 27 February, 2008 @ 13:36
Thanks Thanks Thanks Thanks Thanks Thanks Thanks .
Comment by Israel — 29 February, 2008 @ 18:55
Darn, it works! Thanks a lot.
OBS: I dint changed the ‘browscap.ini’ at all (becouse I dint know what to change there), and it worked anyway.
Comment by Diogo Barioni Abdalla — 7 March, 2008 @ 0:13
Brilliant! Thanks!
Comment by Daniel Miller — 15 March, 2008 @ 7:39
Let me chime in and add my thanks as well. At first it did not work. But then I read post 25, did the search, and found that I had missed one file. As soon as I got them ALL changed (and no change to browscap.ini as other have mentioned), restart Apache and it works. Great post - a tremendous time- and frustration saver!
gReG
Comment by gReG Donohue — 16 March, 2008 @ 17:34
You rock!
Comment by Davide — 19 March, 2008 @ 5:43
I to remove the comment from:
C:\xampp\apache\bin\php.ini
C:\xampp\php\php.ini
C:\xampp\php\php4\php.ini
C:\xampp\php\php4\php4.ini
then I restarted Apache and now it works!
Thanks!
Comment by Azure — 22 March, 2008 @ 21:09
Thank you very much!
Comment by Johan — 27 March, 2008 @ 20:55
thanks man! fixed my xampp!
Comment by jalex — 28 March, 2008 @ 2:44
[...] Die Installation auf meinem lokalen XAMPP-System klappte problemlos, nachdem das mod_rewrite-Modul und die cURL-Erweiterung für PHP entsprechend aktiviert wurden (bei letzterem scheint es im Zusammenhang mit XAMPP öfter mal Probleme zu geben, hier findet man eine gut geschriebene Anleitung). Positiv aufgefallen ist mir die mehrschrittige Installationsroutine, die ein wenig an die aus der Windows-Welt bekannten Wizards erinnert. Hier wird der User durch die wichtigsten Konfigurationsschritte geleitet, sodass der Shop nach der Installation eigentlich schon gebrauchsfertig ist. [...]
Pingback by Gestatten: FWP Shop — 28 March, 2008 @ 19:32
tanx man for this brilliant idea….God Bless
Comment by Bilya — 8 April, 2008 @ 0:00
http://incoherentbabble.com/2007/04/21/using-curl-in-xampp/
who said u need to change all php.ini?
Comment by negalan — 8 April, 2008 @ 7:59
This did the trick for me, thanks a lot!
Comment by Eric Lee — 23 May, 2008 @ 3:43
Thx, Was chanign wrong php stuff
Comment by Bob — 19 July, 2008 @ 19:05
Worked immediately, not sure why all this has to be changed. I’m beginning to regret getting xampp, so much tweaking I might as well have installed everything by hand.
Comment by Ali — 22 July, 2008 @ 16:43
The only thing that MATTERS here lies in:
C:\xampp\apache\bin\php.ini
Other .ini’s are irrelevant.
Comment by wiki — 28 July, 2008 @ 6:07
Thanks Simple way to enable by php.ini file
just have to remove ; from php_curl.dll
Thanks
KOK
Comment by KOK — 13 August, 2008 @ 9:30
Thanks for this precious help
Comment by Amarjeet — 28 August, 2008 @ 9:42