Tuesday, February 24, 2015

PHP - Fatal error: Call to undefined function curl_init()

PHP – Fatal error: Call to undefined function curl_init()


On current versions of Debian and Ubuntu, you can likely solve this by installing the Curl extension for PHP, and restarting the webserver.


sudo apt-get install php5-curl


It’s possible you’ll need to install more:


sudo apt-get install curl libcurl3 libcurl3-dev;



PHP - Fatal error: Call to undefined function curl_init()