P
P
PotLo2021-09-27 16:45:08
linux
PotLo, 2021-09-27 16:45:08

How to make composer see current php version?

I have centos 7. I installed LAMP and Composer, did everything according to the instructions, the installation went fine. Installed for the flarum engine, which is installed only through composer. The php version is needed 7.4, after installing LAMP I had 5.x, I changed it to 7.4, through php -v it shows 7.4 as required. When I go to the folder with the engine installer ( ipadress/public ), I get an error in the browser:
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0".
...................
Composer sees a different version of php, how to solve the problem?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Dmitriev, 2021-09-27
@PotLo

php in linux is present in 3 "guises":
1. php cli application
2. Module for apache
3. Module for FPM.
You need to determine which of these three options shows the wrong version and fix it by reconfiguring the work to a different version - which you apparently have 2 in parallel or not installed at all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question