Arshdeep Arshdeep - 2 years ago 163
PHP Question

How to enable curl, installed Ubuntu LAMP stack?

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

How should I enable Curl then?

Answer Source


sudo apt-get install php5-curl

After installing libcurl you should restart the web server with one of the following commands,

sudo /etc/init.d/apache2 restart OR sudo service apache2 restart

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download