Enable cURL on PHP7 windows10 64 bit Apache 2.4

前端 未结 6 1198
孤城傲影
孤城傲影 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:55

    This save my life (from https://www.php.net/manual/en/curl.installation.php)

    Upgrading to php 7.1.6 on Apache 2.4 32bit version Windows 7 x64

    this curl implementation works:

    1. C:/(path to php folder)/php.ini enable extension=php_curl.dll

    libeay32.dll, ssleay32.dll, libssh2.dll find directly in php7 folder

    1. add this to Apache/conf/httpd.conf

      load curl and open ssl libraries LoadFile "C:/(path to php folder)/libeay32.dll" LoadFile "C:/(path to php folder)/ssleay32.dll"

    LoadFile "C:/(path to php folder)/libssh2.dll"

    If you don't find some of this DLLs, try downloaidng non-TS version fo php and copy them from that folder.

提交回复
热议问题