Install cURL for php on Ubuntu:

sudo apt-get install curl php5-curl php5-xmlrpc

sudo /etc/init.d/apache2 restart

 

Install cURL for php on CentOS:

yum install curl curl-devel php-xmlrpc

sudo /etc/init.d/httpd restart