How to enable curl in ubuntu system?

Hi, The following command to work on enable curl in ubuntu system,

go to terminal :

Once run the commands if you do not install the php.

sudo apt-get install apache2

sudo apt-get install php5

sudo apt-get install libapache2-mod-php5

sudo /etc/init.d/apache2 restart

After that run the following commands to enable curl :

sudo apt-get install php5-curl

sudo apt-get install php5-common ( this has JSON support )

sudo /etc/init.d/apache2 restart

Anil Kumar Panigrahi

With more than 10 years experience in PHP and Founder of Anil Labs, a blog for PHP and related posts. contributed posts regarding CodeIgniter, CakePHP and Learn PHP online ... Contact : [email protected]

You may also like...

3 Responses

  1. David says:

    thanks. this solved a silly but irritating problem I had.

  2. Kerekes says:

    Thank! Thet is Grat!

  3. abc says:

    thats great

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.