I just upgraded to Ubuntu 18.04.1 LTS and went to check on my local apache2 installation by adding phpinfo() to an index file.
After update/reboot, I went to my local WordPress Admin area and attenpted to update a plugin and got the following error:
Fatal error: Uncaught Error: Call to undefined function curl_init()
Here's what I did:
- I checked phpinfo() and no curl OR xdebug options are shown.
- I went to /etc/php/7.1/apache2/php.ini and uncommented the following line extension=php_curl.dll.
- I then restarted apache.
- Also, my phpinfo() shows Loaded Configuration File /etc/php/7.1/apache2/php.ini and THAT is the one I've been editing.
However, WordPress still reports the following: PHP Fatal error: Call to undefined function curl_init().
I'm thinking I MUST be editing the wrong ini file.
Any ideas? I'm dead in the water here. ?
I have had the same problem as you, but with nextcloud. Sadly I didn't wrote down, what worked. I looked up in m histfile.
Try some of these and tell me what worked:
If it still doesnt work I could use this Information:
EDIT
sleeper found a solution for php7.1 . You need to know your php version you want. Then you can install php7.1-curl (or your version of your php).
Source: unix.stackexchange.com