Answer the question
In order to leave comments, you need to log in
Why is php 7.2 in the console, but phpinfo outputs 7.1?
Installed php using homebrew.
In the console it outputs:
But if I register phpinfo on the site, it outputs:
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
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]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question