Upgraded to Ubuntu 16.04 and facing problem after installing PHP5.
Installed PHP-5 with following:
sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get upgrade sudo apt-get install php5.5 # for PHP 5.5
Trying to install php-curl but its not working.
sudo apt-get install php5-curl
Error: E: Unable to locate package php5-curl
In Ubuntu 16.04 default PHP version is 7.0, if you want to use different version then you need to install PHP package according to PHP version:
- PHP 7.2:
sudo apt-get install php7.2-curl - PHP 7.1:
sudo apt-get install php7.1-curl - PHP 7.0:
sudo apt-get install php7.0-curl - PHP 5.6:
sudo apt-get install php5.6-curl - PHP 5.5:
sudo apt-get install php5.5-curl
This works for me:
sudo apt-get install php5.6-curl
This worked for me.
sudo apt-get install php-curl
To Install cURL 7.49.0 on Ubuntu 16.04 and Derivatives
Do:
# apt-get update
And then:
# apt-get install php5-curl