Saturday, March 7, 2015

php - How to enable curl, installed Ubuntu LAMP stack?



I have installed ubuntu Lamp stack.But the curl is not enabled neither i can find extension listed in the INI file, i added manually but it didn't worked too.



How should enable Curl then ?


Answer



install the package



apt-get install php5-curl



at this point php should already be configured to load that library [ /etc/php5/apache2/conf.d/curl.ini ]; restart apache



/etc/init.d/apache2 restart

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...