T
T
takoyklasnii2019-12-27 16:02:32
PHP
takoyklasnii, 2019-12-27 16:02:32

Why is php 7.2 in the console, but phpinfo outputs 7.1?

Installed php using homebrew.
In the console it outputs:
5e0600a58c46e325004905.png
But if I register phpinfo on the site, it outputs:
5e0600d42889a693657753.png
I've been fucking for 3 hours with this. What should I do ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin B., 2019-12-27
@Kostik_1993

Because it is divided into the version for the PHP-CLI console and for the server, for example PHP-FPM
For the server, the version that is specified in the Nginx or Apache configuration is used
In Ubuntu for the CLI, you can specify the version using or call the command with the desired version UPD: the author has the same macOS

brew unlink [email protected] && brew link --force --overwrite [email protected]

A
Arman, 2019-12-27
@Arik

I suspect standard php in the console, because during installation, they ignored the inscription, which describes how to set up the console for the brew version

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question