Skip to content

How to Enable cURL on Windows & Apache Server?

Last updated on November 25, 2022

Firstly, locate your php.ini file, which in my case is in the default directory of xampp\php, and edit with a notepad.

Locate and uncomment (remove the; at the start of the line) the following lines:

extension=php_curl.dll

Restart your Apache server.

Create a file called test.php with the below code in your server root and access it with http://localhost/test.php

<?php
echo phpinfo();

You should see somewhere on that page a block that looks like this:
curl

That’s it

0 0 votes
Article Rating
Subscribe
Notify of
guest

2 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments