Friday, January 22, 2010

Ubuntu - Apache2 - cURL?

Recently, I installed a plugin where one of the features wouldnt work because it said that something called cURL wasn't installed on my server.


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

No comments:

Post a Comment