Tuesday, September 25, 2012

How to enable curl in LAMP

Open your terminal and execute the following command

sudo apt-get install php5-curl

curl will be enabled, only if you restart your apache server. To restart apache, please execute the following command from term

sudo /etc/init.d/apache2 restart


To check if curl is enabled or not, use phpinfo() function.

No comments:

Post a Comment