I'm getting a PHP Fatal error:
Call to undefined function curl_init() error while testing some PHP code on my server.
I assumed Curl needed to be installed so i found the PHP version first:
php --version
PHP 5.6.11-1ubuntu3.4 (cli)
I proceeded to install the package:
sudo apt-get install php5-curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php5-curl
I then tried:
sudo apt install php-curl
and it appeared to install but I saw references to PHP 7 and it completed successfully.
Yet, the problem persists.
How do I get curl running to stop the init() error?
UPDATE: When I run this I get:
sudo apt-get install curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
curl is already the newest version (7.47.0-1ubuntu2.13).
0 upgraded, 0 newly installed, 0 to remove and 172 not upgraded.