D
D
Dmitry2018-12-05 22:18:38
PHP
Dmitry, 2018-12-05 22:18:38

How to update php to version 7 on centOS?

Installed through the console php version 7.2 I
check I check
5c08245344e7f657211619.png
with the phpinfo () function
5c082478210b4862454249.png
What could be the problem? reboot didn't help.
Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 PHP/5.4.45

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladislav Lyskov, 2018-12-05
@Vlatqa

you need to set up a web server

B
Boris Syomov, 2018-12-05
@kotomyava

The problem may be, for example, that you installed php-cli, and the Apache module, some old one, was connected, and remained.
Look in phpinfo() for which SAPI you are using and draw your own conclusions. Most likely, you will have to make changes in the web server config to get the desired version of php working in it, for example, by disabling the old mod_php and enabling the new one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question