Local Project feasible line report this error
After reviewing the search, we learned that the FileInfo extension of PHP was not installed and opened, the workaround:
1. Check the current environment
php -i|grep fileinfoIf present fileinfo fileinfo support => enabled , the fileinfo extension is available, otherwise it is unavailable.
2. Installation 2-1: Download
PHP version should be downloaded according to its own version (my 5.5.7)
wget -O php-5.5.7.tar.gz http://cn2.php.net/get/php-5.5.7.tar.gz/from/this/mirror
2-2: Unzip
tar -zxvf php-5.5.7.tar.gz
2-3: Go to the corresponding PHP version extension directory
cd /var/php5.5.7/php-5.5.7/ext/fileinfo
2-4: Compile && Install
/usr/local/php/bin/phpize./configure -with-php-config=/usr/local/php/bin/php-configmake && make installvim /usr/local/php/etc/php.ini
2-5: Modify PHP.ini
Join:extension=fileinfo.so
Measured, completely feasible. The specific path needs to be adjusted according to the installation path. Don't forget to restart the server.
Reprinted from: http://www.thinksaas.cn/topics/0/501/501957.html
thinkphp Project Class ' finfo ' not found