Enable cURL on PHP7 windows10 64 bit Apache 2.4

前端 未结 6 1186
孤城傲影
孤城傲影 2020-12-24 15:08

I am using Windows10 64 bit Apache 2.4.25 (Win64) PHP 7.1.0-Win32-VC14-x64

when i try calling curl_init() function, i get an error saying \"Call to undefined functio

6条回答
  •  离开以前
    2020-12-24 15:56

    I had the same issue with Acquia's Dev Desktop, copying the libcrypto-1_1-x64.dll and libssl-1_1-x64.dll from the PHP7.3 folder to the Apache/bin folder resolved the issue for me.

    "Beginning with version 1.1.0 OpenSSL did change their libary names! libeay32.dll is now libcrypto-.dll (e.g. libcrypto-1_1-x64.dll for OpenSSL 1.1.x on 64bit windows) ssleay32.dll is now libssl-.dll (e.g. libssl-1_1-x64.dll for OpenSSL 1.1.x on 64bit windows)"

    • epos_jk

    See https://www.php.net/manual/en/curl.installation.php#121921.

提交回复
热议问题