2

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?

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

1 Answer 1

4

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

1
  • ahhahah Hilarious but thanks
    – Jovylle
    Nov 29, 2021 at 15:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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