I got log errors like these:
To solve this, I ran the below command and restarted the server.
sudo apt-get install php-curl sudo /etc/init.d/apache2 restart sudo service apache2 restart
Then I checked with code:
<?php phpinfo(); ?> , I got this result:
Also I checked by running this code in a web browser:
echo 'Curl: ', function_exists('curl_init') ? 'Enabled' : 'Disabled';
In the web browser, it gave the result that it was
Also when I checked by following the instructions at Check to see if cURL is installed locally?, I got this result:
After doing all this I am still getting those log errors. Is curl loaded?