Solving: Call to undefined function curl_init() in Debian/Ubuntu
Hi, this is an easy Troubleshooting of the Call to undefined function curl_init() Issue for WordPress in Ubuntu/Debian GNU/Linux Servers.
Usually this problem is caused by a Missing or Unachieved PHP cURL Setup!
Installing PHP cURL Extension
Now to Install PHP cURL
sudo apt install phpX.Y-curl php-curlAnd so for instance for the current PHP 7.4 it looks like:
sudo apt install php7.4-curl php-curl
So then to Restart Apache Web Server
It’s is important to Reload it just like with:
sudo /etc/init.d/apache2 restart