在Windows上为PHP5.6.4启用CURL [英] Enable CURL on Windows For PHP5.6.4
问题描述
我正在我的一个项目中尝试使用 HybridAuth ,收到的错误消息是>
Im trying to use HybridAuth in one of my projects, the error message im getting is
原始错误消息:Hybridauth库需要CURL PHP扩展名.
Original error message: Hybridauth Library needs the CURL PHP extension.
即使我在php.ini
中启用了cURL,
extension = php_curl.dll
Even though i have enabled cURL in my php.ini
extension=php_curl.dll
这是我的phpinfo()
为了启用cURL扩展,我还必须做些什么,相关的php_curl.dll
也出现在ext
目录中
What else i have to do in-order to enable the cURL extension, the related php_curl.dll
is also present in the ext
dir
重新启动apache服务器时收到的消息
Message that i get when i restart the apache server
C:\ Apache24 \ bin> httpd -k重新启动AH00558:httpd:无法可靠 使用以下命令确定服务器的标准域名 fe80 :: a02e:1c05:c6ad:9332.将"ServerName"指令全局设置为 禁止显示此消息
C:\Apache24\bin>httpd -k restart AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::a02e:1c05:c6ad:9332. Set the 'ServerName' directive globally to suppress this message
推荐答案
因此,事实证明我需要一个固定版本的curl,该版本对于PHP_5.6.4找不到,因此我将其降级为PHP Version 5.4.3
,然后下载了从
so it turns out i need a fixed version of curl which i could not find for PHP_5.6.4, so i downgraded to PHP Version 5.4.3
and then downloaded Fixed curl extension(dont know what it is) from here replaced the original php_curl.dll
with the one i downloaded and voila it worked.
以下SO帖子帮助我解决了问题
The following SO post helped me fix the problem
PHP cURL无法正常工作-Windows 7上的WAMP 64位
P.S请随时编辑答案,因为我不知道其现在起作用的确切原因以及为什么它没有更早起作用...
P.S please feel free to edit the answer as i dont know the exact reason why its working now and why it was not earlier...
这篇关于在Windows上为PHP5.6.4启用CURL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!