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.