Apr

1

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



Similar Posts

Comments

Name (required)

Email (required)

Website

Speak your mind

8 Comments so far

  1. oat2sen on May 5, 2008 11:07 am

    It works great! thanks!

  2. 186 on May 7, 2008 6:00 pm

    Thanks for the tip on the quick cURL install!

  3. Chris Cohen on September 2, 2008 7:12 am

    Very straightforward and useful. Thanks.

  4. admin on September 3, 2008 9:32 am

    hi guys, glad to know it works for you all. :)

  5. Ryan on September 30, 2008 9:32 pm

    worked great on Ubuntu 8.04! Also needed to restart Apache
    sudo /etc/init.d/apache2 restart

  6. No important on October 4, 2008 6:28 am

    Just want to thank you for you advice! Helps me

  7. Tyler Mulligan on November 15, 2008 12:02 pm

    Blamo! Spot on. You are made of win.

  8. sebastian on December 16, 2008 11:29 am

    thank you so much!

Sponsors




Links