1. Open your terminal (ctrl+t) and type:
sudo apt-get install curl libcurl3 libcurl3-dev php5-curl php5-mcrypt
2. Open the php.ini file (/etc/php5/apache2/php.ini ) and add:
extension=curl.so
3. Restart apache:
service apache2 restart