Chris Hansen
Chris Hansen

Reputation: 8685

PHP curl is not working on Windows and Apache

PHP Curl is not working on Windows and APACHE. I get the following error:

Fatal error: Call to undefined function curl_init() in C:\Apache24...

What should I do?

Curl is installed but it is not showing up in phpinfo.

Upvotes: 1

Views: 1433

Answers (3)

anjanesh
anjanesh

Reputation: 4261

Had the same issue recently on my Windows 10 Pro notebook. Fixed it by just installing the latest Apache for Windows.

Upvotes: 0

Sabuj Hassan
Sabuj Hassan

Reputation: 39443

For windows 7 Some users have faced similar problem with easyphp. It has a solution for easyphp that I used once.

1) Installing/copying the bundle into D:/ drive instead of C:/ (assuming here it has windows).

2) Save a copy of your php.ini file at C:/Windows folder as well. Also, you can check which ini file is loaded by your php from the phpinfo().

Now restart your apache, and it may work for you too.

Upvotes: 0

chanchal118
chanchal118

Reputation: 3657

Enable extension php_curlin php.ini

extension=php_curl.dll

This solution is proposed based on Wamp. In other systems it may very. See @Mike's comment below this answer.

Upvotes: 1

Related Questions