lnmp 安装 扩展fileinfo

Problem 1
– Installation request for intervention/image 2.4.2 -> satisfiable by interv ention/image[2.4.2].
– intervention/image 2.4.2 requires ext-fileinfo * -> the requested PHP exte nsion fileinfo is missing from your system.
Problem 2
– Installation request for league/flysystem 1.0.51 -> satisfiable by league/ flysystem[1.0.51].
– league/flysystem 1.0.51 requires ext-fileinfo * -> the requested PHP exten sion fileinfo is missing from your system.
Problem 3
– Installation request for phpoffice/phpspreadsheet 1.6.0 -> satisfiable by phpoffice/phpspreadsheet[1.6.0].
– phpoffice/phpspreadsheet 1.6.0 requires ext-fileinfo * -> the requested PH P extension fileinfo is missing from your system.
Problem 4
– league/flysystem 1.0.51 requires ext-fileinfo * -> the requested PHP exten sion fileinfo is missing from your system.
– laravel/framework v5.6.39 requires league/flysystem ^1.0.8 -> satisfiable by league/flysystem[1.0.51].
– Installation request for laravel/framework v5.6.39 -> satisfiable by larav el/framework[v5.6.39].

To enable extensions, verify that they are enabled in your .ini files:
– /usr/local/php/etc/php.ini
You can also run `php –ini` inside terminal to see which files are used by PH P in CLI mode.

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

make

make install

再到 php.ini 中开启fileinfo

 

composer

Failed to enable crypto
failed to open stream: operation failed

打开php.ini, 将default_socket_timeout值调大。如:default_socket_timeout=360(默认为-1或60)