Elasticsearch-PHP requires cURL, or a custom HTTP handler. 或者 Call to undefined function curl_init()
原因:
没有开启curl扩展
安装或者开启扩展
ubuntu 执行安装Curl的扩展
sudo apt-get install -y php-curl
重启apache2
systemctl restart apache2
原因:
没有开启curl扩展
安装或者开启扩展
ubuntu 执行安装Curl的扩展
sudo apt-get install -y php-curl
重启apache2
systemctl restart apache2