php cURL library is not loaded

Posted Vastiny

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php cURL library is not loaded相关的知识,希望对你有一定的参考价值。

问题:

php 在命令行里面可以找到 curl 模块,但是用apache 没有找到 curl 模块。

 

表现内容为:

extension_loaded(‘curl‘)
cURL library is not loaded

 

下面变量 undefined

CURLOPT_SSL_VERIFYPEER,
CURLOPT_SSL_VERIFYHOST,
CURLOPT_CONNECTTIMEOUT,
CURLOPT_TIMEOUT,

 

原因:

没有加载: libeay32.dll 、 ssleay32.dll 、 libssh2.dll。

 

解决方案:

添加 c:\php c:\php\ext 和 c:\apache2\bin 到系统的PATH中

 

出处:

https://bugs.php.net/bug.php?id=68047

以上是关于php cURL library is not loaded的主要内容,如果未能解决你的问题,请参考以下文章

安装php configure无法通过:报错Note that the MySQL client library is not bundled anymore!

configure: error: Cannot find libmysqlclient under /usr Note that the MySQL client library is not bu

django is not a registered tag library.

import pyarrow not working <- error is "ValueError: The pyarrow library is not installed, pl

django.template.exceptions.TemplateSyntaxError: ‘staticfiles‘ is not a registered tag library.

is not a registered tag library. Must be one of: