LNMP using a key referred to time laravel stepped pit installation package on Centos

surroundings:

Ali cloud ECS

LNMP1.4

lumen upload files when an error occurs, with debug mode debugging turned on,

The results returned:

Unable to guess the mime type as no guessers are available (Did you enable the php_fileinfo extension

Then go check php configuration path: php --ini

After a review of modification: vim php.ini

Can be seen; extension = php_fileinfo.dll is to remark out, but this is not the outright cancellation of notes on the bin, because it is the Linux environment, this dll file extension is on Windows, so we continue to look for ways to expand the installation files so

Because using a lnmp a key installation script, so go find this official extension installation instructions:

https://www.vpser.net/manage/lnmp-php-install-ext.html

Stepped pit: because lnmp1.4 the installation is complete, it will delete the source directory php-7.1.7, you need to enter lnmp1.4 / src

Again with the command tar -xf php-7.1.7.tar.bz2 unpacked,

7.1.7 version into the directory cd lnmp1.4 / src / php-7.1.7 / ext / fileinfo

/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make && make install
/usr/local/php/etc/php.ini 添加扩展:
extension=fileinfo.so

After the restart php-fpm: /etc/init.d/php-fpm restart

进入/usr/local/nginx/sbin:cd /usr/local/nginx/sbin

Restart ngnix by specifying the configuration file: ./ nginx -s reload -c /etc/nginx/nginx.conf

problem solved.

Published 18 original articles · won praise 8 · views 30000 +

Guess you like

Origin blog.csdn.net/qq_20408397/article/details/81267108
Recommended