WordPress Error: Call to undefined function curl_init() Ubuntu/Debian Server

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!

 - Featured
  1. Installing PHP cURL Extension

    Now to Install PHP cURL
    Generally play:

    sudo apt install phpX.Y-curl php-curl
    And so for instance for the current PHP 7.4 it looks like:
    sudo apt install php7.4-curl php-curl
  2. Restarting Apache

    So then to Restart Apache Web Server
    It’s is important to Reload it just like with:

    sudo /etc/init.d/apache2 restart

Leave a Reply

Your email address will not be published. Required fields are marked *