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 !

1 Answer 1


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

  • Thanks for that. However, if I go do localhost I can see in phpinfo that curl is enabled as too obviously PHP. So I do not understand why ubuntu does not see it. Xampp is installed in /opt if that makes a difference.
    – Vince
    Sep 29, 2014 at 23:41
  • Try the solution outlined here. It is for windows, however the folder paths can be altered to suite that of ubuntu.
    – user271219
    Sep 29, 2014 at 23:55
  • Sounds promising - but what about PHP not being seen either ? thanks !
    – Vince
    Sep 29, 2014 at 23:58
  • Check my answer for an edit. You may already have some of the packages, however, if will just skip them.
    – user271219
    Sep 29, 2014 at 23:58
  • @Vince libcurl and curl are different but related things. That the library is available/enabled in PHP does not mean that the program installed. Install the program as instructed if you want to use it. Programs installed locally (not via the package manager) need more configuration before they are seen elsewhere. That's why php from Xampp isn't visible.
    – muru
    Sep 29, 2014 at 23:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .