Linux Ubuntu Install Setup PHP cURL

If you use PHP, you may need to use cURL, which is one of the most popular extension. PHP CURL functions are available through the use of libcurl, a library created by Daniel Stenberg, and allow you to connect and communicate with web servers using many
different types of protocols.

Assume you have already setup LAMP. To install or setup cURL on your Linux machine like Ubuntu, run the following line of shell command in your terminal:

sudo apt-get install curl libcurl3 libcurl3-dev php5-curl

Now you have PHP cURL installed, the next thing you need to do is to restart apache2, run the following command in your terminal:

sudo /etc/init.d/apache2 restart

Be Sociable, Share!

About Shi Chuan

I am a web developer.
This entry was posted in Linux, PHP Core and tagged , . Bookmark the permalink.

57 Responses to Linux Ubuntu Install Setup PHP cURL

  1. Mohamed Nazar says:

    Thanks and working like a charm!!!

  2. Thanks a lot! Its help a lot!

  3. Melroy van den Berg says:


  4. Ultime says:

    You saved my evening!
    Thanks a LOT

  5. subhojit777 says:


  6. KalMax says:

    Hi, I cant get any php script using curl to run from /var/www. Any help

  7. dinaGer says:

    Is there anyone alive?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>