Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Elasticsearch-PHP needs curl or custom http handler

i'm deploy laravel 5.2 to ubuntu and installed elasticquent lib and elasticsearch 2.3.4 , when i try to figure the result of aggregation :

RuntimeException in ClientBuilder.php line 144:
Elasticsearch-PHP requires cURL, or a custom HTTP handler.

I already install curl using command sudo apt-get install php5-curl and its still display the same error

How to fix it?

Thank you

like image 630
Muhammad Mu'az Avatar asked Jul 21 '16 07:07

Muhammad Mu'az


1 Answers

You must run sudo apt-get install curl php5-curl to install curl and its php extension, if you are using PHP7, you must install php7.0-curl instead of php5-curl

like image 133
Morilog Avatar answered Sep 29 '22 17:09

Morilog