NOTICE: PHP message: PHP Warning: PHP Startup: fileinfo: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20131226
These options need to match
in Unknown on line 0
解决方案
修改环境变量
vim /etc/profile/
加入最后一行
export PATH=/usr/local/php/bin:$PATH
source /etc/profile
cd /root/software/php-5.6.31/ext/fileinfo
/usr/local/php/bin/phpize
./configure -with-php-config=/usr/local/php/bin/php-config
make && make install
vim /usr/local/php/etc/php.ini
重启php