When you install the PHP program, it prompts the FileInfo extension is required., the FileInfo extension is missing because Lnmpa does not open itself, so we need to manually open the FileInfo extension.
The method is as follows:
First step: Locate the Lnmpa installation source location:
cd/lnmp1.2-full/src/php-5.6.9/ext/fileinfo/
Step Two:
/usr/local/php/bin/phpize
Returns information similar to the following:
Configuring for:
PHP Api version:20041225
Zend Module Api no:20060613
Zend Extension Api no:220060519
What is Phpize?
PHP Official Description: http://php.net/manual/en/install.pecl.phpize.php
Phpize is used to expand the PHP extension module, through the phpize can build PHP plug-in module, such as you want to be in the original compiled PHP to add memcached or ImageMagick extension modules, you can use Phpize.
Step Three:
./configure--with-php-config=/usr/local/php/bin/php-config
Make && make install
Returns a message similar to the following:
Build complete.
Don ' t forget to run ' make test '.
Installing Shared extensions:/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/
Indicates that the installation was successful.
Fourth Step:
/usr/local/php/etc/php.ini Add Extensions:
Extension=fileinfo.so
Once installed, open the probe and the FileInfo will appear:
FileInfo is also found in Phpfinfo information: