View Discussion
Improve Article
Save Article
View Discussion
Improve Article
Save Article
The ext-curl CURL stands for client user, In Linux cURL is a PHP extension, that allows us to receive and send information via the URL syntax. And ext-curl is the extension in the latest PHP-7 which is loaded with some of the advanced features of the basic curls.
The following are the steps to add ext-curl extension in Ubuntu –
1. Update the Extension
sudo apt-get update
2. Install PHP-curl
sudo apt-get install php-curl OR sudo apt-get install php7.0-curl
During this command the system while ask for your confirmation and if you have to install you have to press ‘y’ key
3. Restart the extension to avoid any problem in the future by the extension
sudo service apache2 restart
After, all the above steps your ext-curl PHP-7 is successfully installing and is ready to use.
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
asked Aug 6, 2016 at 4:41
Govind SamrowGovind Samrow
9,60513 gold badges50 silver badges86 bronze badges
5
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.4:
sudo apt-get install php7.4-curl
- PHP 7.3:
sudo apt-get install php7.3-curl
- 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
answered Aug 6, 2016 at 6:34
Govind SamrowGovind Samrow
9,60513 gold badges50 silver badges86 bronze badges
7
This worked for me.
sudo apt-get install php-curl
answered Aug 8, 2016 at 5:42
AaganjaAaganja
5143 silver badges12 bronze badges
2
This works for me:
sudo apt-get install php5.6-curl
answered Aug 6, 2016 at 6:33
Nehal J WaniNehal J Wani
15.3k3 gold badges61 silver badges87 bronze badges
0
Do:
apt-get update
And then:
apt-get install php5-curl
k0pernikus
53.4k58 gold badges202 silver badges328 bronze badges
answered May 26, 2017 at 19:44
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt install php8.0-curl
answered Mar 12, 2021 at 22:37
VitalicusVitalicus
1,04312 silver badges14 bronze badges
To Install cURL 7.49.0 on Ubuntu 16.04 and Derivatives
wget //curl.haxx.se/download/curl-7.49.0.tar.gz
tar -xvf curl-7.49.0.tar.gz
cd curl-7.49.0/
./configure
make
sudo make install
George
3301 gold badge8 silver badges18 bronze badges
answered Mar 7, 2017 at 22:21
For Ubuntu 18.04 or PHP 7.2 users you can do:
apt-get install php7.2-curl
You can check your PHP version by running php -v
to verify your PHP version and get the right curl version.
answered Apr 12, 2019 at 14:58
sudo apt-get install php5.6-curl
and restart the web browser.
You can check the modules by running php -m | grep curl
Robert
5,24743 gold badges63 silver badges114 bronze badges
answered Oct 30, 2018 at 10:08