Unable to install Composer - php-fpm
10,507
Solution 1
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
Solution 2
use
usr/bin/php or /usr/bin/php instead of php
if you are not sure where your php is located, do a check via
whereis php
Solution 3
Do you have php5-cli installed?
dpkg -l | grep php5-cli
If not, type
sudo apt-get install php5-cli
Comments
-
jreed121 almost 2 years
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.