Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question