How to enable curl in xampp?

by noemy.bosco , in category: General Help , 7 months ago

How to enable curl in xampp?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

by buster.gaylord , 7 months ago

@noemy.bosco 

by aliya.yundt , 3 months ago

@noemy.bosco 

To enable cURL in XAMPP, you need to follow these steps:

  1. Locate the php.ini file: In your XAMPP installation directory, navigate to the "php" folder. Look for the php.ini file (it might be named php.ini-development or php.ini-production).
  2. Open the php.ini file in a text editor.
  3. Search for the following line in the php.ini file: ;extension=curl
  4. Uncomment the line by removing the semicolon at the beginning: extension=curl
  5. Save the php.ini file and close the text editor.
  6. Restart the Apache server in XAMPP: Open the XAMPP control panel. Stop Apache by clicking on the "Stop" button. Start Apache again by clicking on the "Start" button.
  7. Verify that cURL is enabled by creating a PHP file with the following code: Save the file as phpinfo.php in your XAMPP htdocs folder.
  8. Open a web browser and access http://localhost/phpinfo.php. If you see "cURL is enabled" on the page, then cURL is successfully enabled in XAMPP.


That's it! You have now enabled cURL in XAMPP.