Search code examples
phpapachecurlwindows-10easyphp

Php curl on windows 10, php 5.6.17


There are many similar topic, but no solution has solved my problem on window 10 (on a new computer, the computer is full clean).

I install EasyPhp with php 5.6.17 on windows 10, well done! => curl_init() doesn't work

Now i want to install curl. First, in php.ini i uncomment the line "extension=php_curl.dll" (it's the good php.ini, i see the path in phpinfo()), and restart Apache. => curl_init() doesn't work

I add libeay32.dll, libssh32.dll and ssleay32.dll in Windows/system32. => curl_init() doesn't work

At this step, curl work done on my windows 7.

I add libeay32.dll, libssh32.dll and ssleay32.dll in Apache/bin. => curl_init() doesn't work

I add php_curl.dll in Windows/system32. => curl_init() doesn't work

I try php_curl.dll 32 and 64. => curl_init() doesn't work

I install the software OpenSSL (ssl required for curl). => curl_init() doesn't work

I have no error message except "Fatal error: Call to undefined function curl_init()". phpinfo() never display the curl module.

I'm running out of solution, any idea ?


Solution

  • I found an issue (after one full day on this problem). If you encounter the same problem, try this :

    • open command prompt and go to your php directory root
    • exec : deplister.exe ext\php_curl.dll
    • check dependencies

    For me the file libssh32.dll was missing, but it was in Windows/system32 and apache/bin. To solve the problem, i add the php directory in the path windows, and copy the file libssh32.dll in the php directory.

    Source