Answer the question
In order to leave comments, you need to log in
How to run .php script on server via linux console?
I try to run the script with the command
php 1.php
php7 1.php
php7-cli 1.php
writes
-bash: php7-cli: command not found
When I run the command php -v
-bash: php: command not found
linux version: # cat /etc /*-release
CentOS release 6.10 (Final)
PHP Version 7.1.26
Answer the question
In order to leave comments, you need to log in
php -v
-bash: php: command not found
look for where puff lies in your distribution:
whereis php
we write with paths
You just need to find where the php executable is located
And if it doesn't work then
find / -iname "*php*"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question