php upload file problem



nginx
500 problem & error       7       problem

solved /mnt/data0/tmp; 



server
  {
    listen       80;
    server_name  xx.com;
    index index.html index.htm index.php;
    root  /mnt/data0/wwwroot/www.xx.com/public_appWeb;
    location ~ .*\.(php|php5)?$
    {
      #fastcgi_pass  unix:/tmp/php-cgi.sock;
      fastcgi_pass  127.0.0.1:9000;
      fastcgi_index index.php;
      include fcgi.conf;

      client_max_body_size 35m; #The client upload file size is set to 35M
      client_body_temp_path /mnt/data0/tmp;  
    }

    location / {
          if (!-e $request_filename){
             rewrite ^/(.*) /index.php last;
          }
    }

#log_format  wwwlogs-leworldtrip-admin  '$remote_addr - $remote_user [$time_local] "$request" '
#              '$status $body_bytes_sent "$http_referer" '
#               '"$http_user_agent" $http_x_forwarded_for';
    #access_log  /mnt/data1/logs/wwwlogs-xx.log  wwwlogs;
  }


php.ini
upload_tmp_dir =/data/wwwroot/tmp

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326221122&siteId=291194637