PHP CLI가 서버에서 정상적으로 작동을 멈췄습니다. 어떤 PHP 파일도 php -v를 실행하면 다음과 같은 오류가 발생합니다. 쉘에linux에서 php cli가 작동하지 않습니다.
감사
# php -v
Unknown option: v
php [-f from_encoding] [-t to_encoding] [-s string] [files...]
php -l
php -r encoding_alias
-l,--list
lists all available encodings
-r,--resolve encoding_alias
resolve encoding to its (Encode) canonical name
-f,--from from_encoding
when omitted, the current locale will be used
-t,--to to_encoding
when omitted, the current locale will be used
-s,--string string
"string" will be the input instead of STDIN or files
The following are mainly of interest to Encode hackers:
-D,--debug show debug information
-C N | -c | -p check the validity of the input
-S,--scheme scheme use the scheme for conversion
검색 경로에서 자체가 아닌 PHP를 호출하고 있는지 확인하십시오. –