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.
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
Source: https://ru.stackoverflow.com/questions/963968/
All Articles
echo $?
what does he say? - rjhdby