Weird error in the path of multi-version phpini under centos7

Environment centos7
php version php5.6 php7.0 php7.1 php7.2
problem
execution of php-- ini in php7.1 and php7.2 returns the ini path of the location of their directories as shown in figure
below, but php-- ini in php7.0 and 5.6returns the ini address under the php5.6 path. In other words, ini of 5.6 is shared using
only the folder where the compilation is installed is specified at compile time, and the ini location of php is not modified (I don"t know where to change the location of ini
Picture:

)

the following is an update
recompiles the parameter with the specified location of ini, but still refuses to recognize that you need to use the
of php5. Use the command as follows

./configure  --prefix=/usr/local/php7 --with-config-file-path=/usr/local/php7/lib --enable-fpm --with-mysqli --with-zlib --with-curl --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-openssl --enable-mbstring --enable-xml --enable-session --enable-ftp --enable-pdo
Mar.28,2021

-- is there a php.ini under the directory of with-config-file-path=/usr/local/php7/lib
configuration?
when php starts, you can specify the configuration file manually. For the link https://www.cnblogs.com/gouge.
, refer to


forget to add this. Change the system and php version. Why the hell with the hen?

Menu