Ubuntu – How to make Curl and PHP available when installed from Xampp

14.04curlPHPxampp

I have installed a recent copy of XAMPP on Ubuntu 14.04. However, when I issue this command:

curl -sS https://getcomposer.org/installer | php

I get the following error messages:

  1. The program 'curl' is currently not installed. You can install it by typing:

    sudo apt-get install curl

  2. The program 'php' is currently not installed. You can install it by typing:

    sudo apt-get install php5-cli

So what gives, how do I make my implimentation of curl and PHP "visible".

Thanks !

Best Answer

What it means is that you don't have curl installed and you need to install curl to use it. This can be done by going to a terminal CTRL + ALT + T then entering sudo apt-get install curl libcurl3 libcurl3-dev php5-curl. This will install curl, php and the necessary libraries to provide you with the functionality that you need.

After the installation has completed, restart the server with sudo service apache2 restart

Related Question