首页 > 解决方案 > 我该如何解决这个 [RuntimeException] Elasticsearch-PHP 需要 cURL 或自定义 HTTP 处理程序?

问题描述

我尝试使用 brew ( brew install php --build-from-source) 使用 curl 构建 php,然后在 apache 中使用 libphp7.so。php -m表明它具有 curl 模块。此错误在 Laravel 日志中和运行时输出composer update

[RuntimeException] Elasticsearch-PHP 需要 cURL 或自定义 HTTP 处理程序

标签: phplaravelelasticsearchbuild

解决方案


推荐阅读