php - laravel 5.3在nginx下提示“No input file specified.”

查看:101
本文介绍了php - laravel 5.3在nginx下提示“No input file specified.”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

我已经将root目录设置成了public目录,而且我也可以访问里面的静态文件,但是进入public目录就一直提示No input file specified.,求大神解答,下面是我的nginx的conf

server
{
    listen       80;
    server_name lirecord.licoy.cn; #server_name end
    index index.html index.htm index.php; #index end
    charset utf-8;
    
    root  /home/wwwroot/lirecord/web/public;

    #error_page
     location ~ /ErrorPages/(400|401|403|404|405|500|502|503)\.html$ {
                root /home/wwwroot/lirecord/web;
    }
    
    location / {  
        try_files $uri $uri/ /index.php?$query_string;  
    }    


    location ~ .*\.php$
    {
        fastcgi_pass  unix:/tmp/php-cgi-lirecord.sock;
        fastcgi_index index.php;
        include fcgi-host.conf;
        fastcgi_param DOCUMENT_ROOT  /web;
        fastcgi_param SCRIPT_FILENAME  /web$fastcgi_script_name;
    }

    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp3|wma)$
    {
        expires      30d;
    }

    location ~ .*\.(js|css)$
    {
        expires      12h;
    }

    access_log off; #access_log end
    error_log /home/wwwroot/lirecord/log/error.log crit; #error_log end
}

这个问题已被关闭,原因:问题已解决 - 问题已解决,且对他人无借鉴意义

解决方案

  1. 查看目录/home/wwwroot/lirecord/web/public其它用户是否可读可写?

  2. 是否生成的Application-key 可以执行php artisan key:generate;

这篇关于php - laravel 5.3在nginx下提示“No input file specified.”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆