How to enable cURL in server from terminal (ubuntu)

To enable curl package php5-curl should be installed. Open "Terminal" and execute the following command:
    sudo apt-get install curl libcurl3 libcurl3-dev php5-curl

After installing libcurl you should restart the web server with following command,
sudo /etc/init.d/apache2 restart

Hope this solution will help to enable curl in your ubuntu system. It worked on mine :)

Comments

  1. Error - bash: cd: /etc/init.d/apache2: No such file or directory

    What to do?

    ReplyDelete

Post a Comment

Popular Posts