Answer the question
In order to leave comments, you need to log in
[[+content_image]]
Why doesn't linux see php72 as php?
Centos 7 system. Installed php7.2 After installation, I check:
[[email protected] share]# php -v
bash: php: command not found
[[email protected] ~]# php72 -v
PHP 7.2.4 (cli) (built: Mar 27 2018 16:16:09) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright ( c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.4, Copyright (c) 1999-2018, by Zend Technologies
Answer the question
In order to leave comments, you need to log in
You are confusing the php console utility and the corresponding service, which, in conjunction with nginx, usually works through a socket in /var/run/php
.
A computer may have several different versions of PHP installed.
To switch the PHP version by default, you need to make 3 symlinks to the corresponding libraries.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question