How to install the ext-curl extension with PHP 7 ?

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 conformation 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.

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :
Practice Tags :


3


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.