php -v 

This command does not work, there are no errors.

restarting php-fpm does not help, what could be the problem and how to solve it?

upd: in / bin / php is empty.

  • What does "not working" mean? - rjhdby
  • @rjhdby, does not display the version of php - dasauser
  • and the fact that the executable file is not found is not writing? Just nothing happens or what? - teran
  • @teran, exactly. - dasauser am
  • And echo $? what does he say? - rjhdby

2 answers 2

problem solved.

I had to reinstall php-cli.

It looked like this for me:

 yum reinstall php72w-cli.x86_64 

    To work with php in the console (online) use: "php -a"

    Example of use:

     $ php -a Interactive mode enabled php > echo time(); 1554106866 

    Ps. If php is not installed, here is how to put it:

    In short:

     $ sudo apt install php-fpm