Enable cURL with XAMPP

cURL is disabled by default in your XAMPP installation. To enable it, you have to modify the php.ini files in your XAMPP folder. Follow the steps below to get it up and running.

  1. Locate the following files:
    C:\Program Files\xampp\apache\bin\php.ini
    C:\Program Files\xampp\php\php.ini
    C:\Program Files\xampp\php\php4\php.ini
    
  2. Uncomment the following line on your php.ini file by removing the semicolon.
    ;extension=php_curl.dll
    
  3. Restart your Apache server.
  4. Check your phpinfo if curl was properly enabled.

2 comments for Enable cURL with XAMPP

Justin's picture

I've been trying to figure...

I've been trying to figure out how to do this for hours! Thanks so much! I am definitely subscribing to your blog!

max's picture

I don't have these...

I don't have these files
C:\Program Files\xampp\apache\bin\php.ini
C:\Program Files\xampp\php\php4\php.ini

I only have
C:\Program Files\xampp\php\php.ini

but in this ;extension=php_curl.dll is not commented

Please help

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.