简体   繁体   中英

cURL is already installed but still giving this error Elasticsearch-PHP requires cURL, or a custom HTTP handler

I am trying to implement Elastic-search in my Laravel project but it is giving this error.

Elasticsearch-PHP requires cURL, or a custom HTTP handler.

I double checked it for cURL and it is loaded inside my php also I was previously working on some other project and send many requests to different API's through cURL and it is working over there but inside laravel it gives me this error.

Why my xampp is doing so and how can I fix this issue Thank you in advance.

I think you have multiple instances of PHP installed. Check your Windows Enviroment Variables, to see from where PHP is running. Assuming your using Git, do a php -v in your terminal to see which php version is loaded and check if it corresponds with the php from your xampp. Or delete xampp and install it in a new folder like, webserver/xampp. Enables the php modules, restart your apache and mysql and check your phpinfo().

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM