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