Lnmpa installation PHP FileInfo expansion module detailed

Source: Internet
Author: User
Tags zend

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.