0

I have a PHP-FPM installed in a VPS. As a result, now I am unable to run some commands that depend on PHP like.

php composer.phar update or curl -sS https://getcomposer.org/installer | php And other commands related with PEAR. I keep adding "-fpm" at the end like this php-fpm but it won't work. I also tried to install as yum install php but, it conflicts with PHP-FPM it won't install.

Any ideas/solutions?

EDIT

this is what I get when I run yum install php-cli

enter image description here I have tried both suggestions mentioned at the bottom. But, still it does not install it.

2
  • it should report an error, what is the error? have you verified the file locations? if you do /usr/bin/php does it work then? Commented Apr 6, 2014 at 0:02
  • @Ohgodwhy It says. -Bash No such file or directory Commented Apr 6, 2014 at 0:05

2 Answers 2

1

Try installing php-cli:

yum install php-cli

This should give you the command line PHP which you are looking for.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks. But it does not seem to work. I have added a snapshot of the result I got when I did yum install php-cli
0

I don't know why, but this finally did it.

sudo yum --enablerepo=remi install php-cli

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.