简体   繁体   中英

fatal error call to undefined function curl_init() windows server2012RC

I am on a Windows SERVER 2012RC 64 bit OS, php 5.6.3

I've got an error:

Fatal error: Call to undefined function curl_init()

I removed the ; preceding the extension=php_curl.dll in php.ini. Restarted the Apache server but still getting the same error.

my php.ini

my php.ini

phpinfo

我修复了以下列表文件从php文件夹中的问题(在我的情况下为D:\\ xampp \\ php)libeay32.dll libssh2.dll ssleay32.dll到c:\\ xampp \\ apache \\ bin(或您的apache \\ bin路径)中,重新启动apache并且工作正常,apache的库已过时

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"

For PHP 7.3 and Apache 2.4.x just copy the libssh2.dll module into the apache bin directory eg c:\\apache\\bin. The libeay32.dll doesn't exist anymore.

And make sure extension=php_curl.dll is not commented out ie

extension=php_curl.dll

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM