Sate_韦 2017-08-23 02:07 采纳率: 0%
浏览 1797

NGINX1.12+thinkphp配置完成后出现上传文件失败的问题

开发环境wamp上没有出现这个问题,移到生产环境(LNMP)上就出现不能上传文件的问题了,但是文件夹里确实已经出现文件了,现在不知道是怎么回事儿了,贴出NGINX的配置文件与报错日志,求大神解答
图片说明
server {
listen 80;
server_name localhost;
access_log /data/wwwlogs/test.clime.cc.log;
error_log /data/wwwlogs/test.clime.cc_error.log;
set $root /data/clime/public;
index index.html index.htm index.php;
#error_page 404 /404.html;
#error_page 502 /502.html;
location / {
root $root;
index index.html index.php;
if ( -f $request_filename) {
break;
}
if ( !-e $request_filename) {
rewrite ^(.*)$ /index.php/$1 last;
break;
}
}
location ~ .+.php($|/) {
fastcgi_pass unix:/dev/shm/php-cgi.sock;
fastcgi_split_path_info ^((?U).+.php)(/?.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $root$fastcgi_script_name;
include fastcgi_params;
}
location ~ .*.(gif|jpg|jpeg|png|bmp|swf|flv|mp4|ico|js|css)$ {
root $root;
expires 30d;
access_log off;
}
}

报错日志:
2017/08/23 09:45:21 [error] 18105#0: *97 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Call to undefined function think\finfo_open() in /data/clime/simplewind/thinkphp/library/think/File.php on line 133" while reading response header from upstream, client: 192.168.2.89, server: localhost, request: "POST /user/asset/webuploader.html?_ajax=1 HTTP/1.1", upstream: "fastcgi://unix:/dev/shm/php-cgi.sock:", host: "192.168.1.254", referrer: "http://192.168.1.254/user/Asset/webuploader?&multi=1&filetype=image&app=portal"
  • 写回答

1条回答 默认 最新

  • threenewbee 2017-08-23 02:47
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 使用C#,asp.net读取Excel文件并保存到Oracle数据库
  • ¥15 C# datagridview 单元格显示进度及值
  • ¥15 thinkphp6配合social login单点登录问题
  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 虚心请教几个问题,小生先有礼了
  • ¥30 截图中的mathematics程序转换成matlab