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.
Try clearing Composer's cache by running composer clear-cache . Ensure you're installing vendors straight from your composer. json via rm -rf vendor && composer update -v when troubleshooting, excluding any possible interferences with existing vendor installations or composer.
Important! If you installed Composer locally, you need to use php composer. phar command within the same directory where it was installed in order to use Composer.
Installation PHP composer on Windows:Step 1: Navigate to the official composer website. Step 2: Then click on the Download button. Step 3: Then click on the Composer-Setup.exe & download the file. Step 4: Then click on “Install for all users”.
You can check your installed composer version using a command composer -v at the current path. Such as: composer -v.
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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With