Unable to install Composer - php-fpm

composer-php, nginx, php, ubuntu

Solution

composer needs at least php 5.3.2. what's your php version? You need php command line to make it work. As the error msg suggested, you'd better install 'php'. In ubuntu, you can use

  sudo apt-get install php5-cli

Problem

Finally got Ubuntu 12.10 with nginx and php-fpm up and running. Now I want to run a websocket server with Ratchet, but I need to install Composer first. So I do this: ``` curl -s https://getcomposer.org/installer | php ``` Just as the Composer site instructed, but I received the following error: ``` The program 'php' is currently not installed. ``` I thought it might have something to do with the php at the end there so I changed it to php5-fpm and then it told me: ``` [18-Nov-2012 05:01:30] ERROR: An another FPM instance seems to already listen on /var/run/php5-fpm.sock [18-Nov-2012 05:01:30] ERROR: FPM initialization failed ``` Has anyone else encountered this? Any solutions? Thanks.

Original source