I have a Linux server with Ubuntu 16.04 installed. I usit just for LAMPP environment, I have PHP 5.6 installed (in apache and CLI), that because the project crash with PHP7, so, I have to maintain in 5.6 version. I'm trying to run a PHP script from the CLI, and I gets: curl_init() in unkown function.
So, I went to the php.ini file (the one of the CLI) and unable the extension, but in CLI when I make: php --version
I get:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/php_curl.dll' - /usr/lib/php/20131226/php_curl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
Then I tried to install curl with: sudo apt-get install php5-curl
but then I get:
E: Unable to locate package php5-curl
So, what should I do then? How can I install it?thanks