How to install cURL for PHP in Ubuntu?

2013-11-27 Linux

To install cURL extension for your PHP environment simply open terminal and type:

sudo apt-get install php5-curl

Installation will take seconds. Then restart Apache with:

sudo service apache2 restart

You can check if everything is OK with:


Press CTRL + F under your browser and search for a “curl” phrase. If it will appear, installation of cURL is successful.