[[+content_image]]
A
A
Alexander Arbuzov2018-04-05 10:36:30
linux
Alexander Arbuzov, 2018-04-05 10:36:30

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

Wherein

[[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

Those. by name php the interpreter is not found. It seems to me that this is not entirely correct. Or is it ok? Maybe create some simlynk or something like that? Or will it all work out?
A bunch of nginx + php-fpm is planned

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
K
ky0, 2018-04-05
@arbuzzz

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.

V
Victor Taran, 2018-04-05
@shambler81

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 question

Ask a Question

731 491 924 answers to any question