Making the PHP Curl Extension Work on Windows

Note: This article was originally written on Reich Web Consulting has narrowed its focus to the web and no longer offers tech support services, so we’ve moved all of our tech support content off-site. We hope you find this article useful. It is provided as-is, and we will no longer provide support on this topic.

Earlier tonight I was setting up some development tools on my new laptop and ran across a problem that I had never seen before. When I began testing an application that uses the Facebook API (which depends on the CURL library), PHP insisted that the CURL extension was not loaded. I checked and double-checked that my php.ini file was correct (it was) and that the rest of my extensions were loading (they were).

Finally after looking at the installation documentation for the CURL module I realized my mistake: I had forgotten to put PHP on the system path. According to

In order to enable this module on a Windows environment, libeay32.dll and ssleay32.dll must be present in your PATH. You don’t need libcurl.dll from the cURL site.

In other words, you either need to adjust your PATH environment variable to contain C:\PHP or you need to copy these two files from that directory to a directory that is on the path, such as C:\windows\system32. Either solution should resolve the problem.

Reich Web Consulting

Written by

Purveyor of fine web creations. Former tech support geniuses. Occasional spouter of opinions on topics of politics and ethics.

More From Medium

More from Reich Web Consulting

Top on Medium

Ed Yong
Mar 25 · 22 min read


Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade