Sab Sab - 1 year ago 221
PHP Question

Call to undefined function curl_init() even it is enabled in php7

I've just installed php7 to my Ubuntu.
At first, there was no problem, my web site was working.
But suddenly, it started to return Call to undefined function curl_init() error.
Now, my pages contain curl codes do not work.

In phpinfo(), it looks Curl is enabled.
There were similar questions but none of them handled it in php7.
I thought it should be something different than others.

When I try

php -i | grep curl

in terminal, it returns


Answer Source

I've had similar problem with curl after upgrade to XX (16.04). After reinstalling curl with:

sudo apt-get install php-curl

And server restart

sudo service apache2 restart

everything went back to normal :)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download