1

I got log errors like these:

![enter image description here

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:

enter image description here

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 Disabled.

Also when I checked by following the instructions at Check to see if cURL is installed locally?, I got this result:

enter image description here

After doing all this I am still getting those log errors. Is curl loaded?

  • 4
    Please don't post screenshots of text. Copy the text here and apply code formatting. – muru Sep 13 '17 at 9:27
  • @muru thanks for suggestion, i will follow your words...... – spylh9999ggr Sep 13 '17 at 10:01
2

apt-get install php7.0-curl saved my time.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.