D
D
dev1232019-06-10 18:12:36
linux
dev123, 2019-06-10 18:12:36

Why different PHP versions in console and browser?

Good afternoon!
I need a customer to transfer the site to the server. Asked his admin to install PHP 7.0. He did. Then we decided that the code should be encoded using IonCube. The requirements of the latest version say that PHP versions 7.1 and 7.2 are coding. About 7.0 speech is not present. I asked the admin to reinstall PHP to version 7.2.
Now in the console with php -v it gives version 7.2:
PHP 7.2.19-1+0~20190531112637.22+stretch~1.gbp75765b (cli)
and in the browser phpversion() gives 7.0:
7.0.33-8+0~20190531121058.14+stretch ~1.gbpe7d4ff
How to make version 7.2 also available in the browser?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sanes, 2019-06-10
@dev123

Because in the php-cli console
let's configure the webserver to the right version.

I
Igor, 2019-06-11
@IgorPI

All because of the environment.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question