No input file specified.

二月鸟 2018-8-14 873

阿里云centos7.4 64bit全新安装appnode,装了nginx php mysql 建立个网站运行任一php文件返回的结果是No input file specified.

百度修改php.ini文件也没用

最新回复 (5)
  • 虚竹 2018-8-14
    引用 2

    提供nginx源文看看。

    No input file specified. 多半是目录指定错误或默认文档未设置导致的。

  • 二月鸟 2018-8-14
    引用 3
    user              nginx;
    worker_processes  1;
    error_log         /var/log/nginx/error.log warn;
    pid               /var/run/nginx.pid;
    
    events {
        worker_connections  1024;
    }
    
    http {
        include                        /etc/nginx/mime.types;
        default_type                   application/octet-stream;
        log_format                     main '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for"';
        access_log                     /var/log/nginx/access.log main;
        sendfile                       on;
        keepalive_timeout              65;
        include                        /etc/nginx/conf.d/*.conf;
        server_tokens                  off;
        server_names_hash_max_size     512;
        server_names_hash_bucket_size  128;
        client_header_buffer_size      32k;
        large_client_header_buffers    4 32k;
        gzip                           on;
        gzip_disable                   msie6;
        gzip_min_length                1k;
        gzip_comp_level                5;
        gzip_buffers                   4 16k;
        gzip_http_version              1.1;
        gzip_proxied                   any;
        gzip_vary                      on;
        gzip_types                     text/plain text/css text/xml text/javascript text/x-component application/json application/javascript application/xml application/xhtml+xml application/xml+rss application/rss+xml application/atom+xml application/x-font-ttf application/x-web-app-manifest+json font/opentype image/svg+xml image/x-icon;
        fastcgi_buffer_size            64k;
        fastcgi_buffers                4 64k;
        fastcgi_busy_buffers_size      128k;
        fastcgi_temp_file_write_size   256k;
        
    }
  • 虚竹 2018-8-15
    引用 4
    请提供网站的nginx配置源文,不是/etc/nginx.conf。
    网站管理-网站设置-源文
  • vipluosong 2020-10-9
    引用 5
    我也遇到了这个问题
  • vipluosong 2020-10-9
    引用 6
    只要我开启 PHP共享运行池 就出现这个问题
返回
发新帖