Lnmp1.4 One-click installation package install PHP FileInfo extension

Source: Internet
Author: User
Tags install php
Lnmp

LNMP One-click installation package is a Linux shell can be written for Centos/rhel/fedora/aliyun/amazon, Debian/ubuntu/raspbian/deepinserver/mint Linux LNMP (nginx/mysql/php), Lnmpa (Nginx/mysql/php/apache), LAMP (apache/mysql/php) Production environment Shell program for VPS or standalone host installations.

You can build your own environment on Linux, and you can also use integration. The disadvantage is to use one-click to install the package you need to read the document to see the location of each configuration file.

As for how to download the installation, here is not to elaborate. You can go to the website to see for yourself. Today, we mainly say that in this integrated environment to do upload image operation when the error: PHP fileinfo.so extension does not exist. Similar to the following error

Missingdependencyexception in imagemanager.php line 133:php Fileinfo extension must is installed/enabled to use Interventi On Image ...
Installing PHP fileinfo.so extensions

1. Open your LNMP installation directory into the SRC folder, unzip one of your PHP version of the compression package, using the decompression command

Tar   -JXVF   

2. Go to the FileInfo Extension folder in the directory you just unzipped and use the command

Cd/home/lnmp1.4/src/php-7.0.21/ext/fileinfo

Then use the following command to get the data

/usr/local/php/bin/phpize

Finally, use the following command to compile the installation

./configure-with-php-config=/usr/local/php/bin/php-config 

3. Open php.ini Add fileinfo.so extension

Add at the bottom of the extension Extension module code

Then save and exit and restart the environment

Lnmp Retstart

Note: Your installation path may be different, please modify the relevant path.

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.