I got error that curl_init() is not defined.
'curl_init' is not defined
So I typed phpinfo(); and I don’t see cURL extension.
So installed curl for PHP7
apt-get update apt-get install php7.0-curl
Works fine after that.
If you are using old php5 version,
sudo apt-get install php5-curl

Facebook Comments