Install cURL on Ubuntu


Hits: 6321  

Run the following command to enable curl package php5-curl.

$ sudo apt-get install php5-curl

Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
php5-curl
0 upgraded, 1 newly installed, 0 to remove and 17 not upgraded.
Need to get 27.1kB of archives.
After this operation, 127kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ lucid-updates/main php5-curl 5.3.2-1ubuntu4.15 [27.1kB]
Fetched 27.1kB in 5s (4818B/s)
Selecting previously deselected package php5-curl.
(Reading database … 43188 files and directories currently installed.)
Unpacking php5-curl (from …/php5-curl_5.3.2-1ubuntu4.15_amd64.deb) …
Processing triggers for libapache2-mod-php5 …
* Reloading web server config apache2 [ OK ]
Setting up php5-curl (5.3.2-1ubuntu4.15) …

Restart apache

$ sudo /etc/init.d/apache2 restart
* Restarting web server apache2 … waiting [ OK ]

Hope this solution will help to enable curl in ubuntu system.

Published by

Sandeep Verma

I’m an Entrepreneur. I’m proud to work as Blogger, LAMP Programmer, Linux Admin, Web Consultant, Cloud Manager, Apps Developer, Searcher. Concentrate > Observe > Imagine > Launch