How do I really change my php version number?

because composer installs slim and some components, I need to rely on php7.1, so I reinstalled php7.1, on my centos7 today. Using php-v also shows version 7.1, but when I use phpinfo () to output the version number in the project directory where there is a problem, it shows me how to modify php5.6,.
I only saw how to find this error in the github discussion area, but did not give a solution: link description

Php
Jul.16,2021

find the path to your PHP7.1. Suppose / usr/php/php7.1
reprocesses the PATH environment variable
export PATH = / usr/php/php7.1/bin:$PATH


because there are two PHP, one for cli and one for Apache, and Apache calls Apache. If the cli called by the command line


first has more than one version, set the / usr/local/php/etc/php-fpm.d port (127.0.0.1 code 9000x9001) to different ports
set multiple enable-php.conf , set different fastcgi_pass 127.0.0.1 code 9001; , and load it in different website vhost.


check whether your 5.6is installed on the docker


if you are using nginx, to overwrite the bin/php-fpm copy under php7.1 / php-fpm under / usr/local/bin

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e54fc3-45307.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e54fc3-45307.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?