美文网首页
windows下开启PHP7的curl拓展

windows下开启PHP7的curl拓展

作者: 阳光的小mi | 来源:发表于2019-07-22 17:54 被阅读0次

环境:
php7.1
apache2.4
问题:

  • 常规操作,打开PHP的curl拓展:
    修改php.ini,打开php_curl.dll,运行php -m和执行<?php phpinfo()?>都能找到curl拓展;
  • 但项目中用到elasticsearch报错Elasticsearch-PHP requires cURL, or a custom HTTP handler.,也就是说curl拓展没有真正打开。
    解决:
    找到对应php目录下libssh2.dll文件,复制到对应apache的bin文件夹下,重启apache即可。

参考:https://blog.csdn.net/u014149394/article/details/74332870

相关文章

网友评论

      本文标题:windows下开启PHP7的curl拓展

      本文链接:https://www.haomeiwen.com/subject/jpzwlctx.html