简要描述:
- laravel在windows上运行成功,linux上却运行失败。
原因一:
- 可能是nginx的配置问题,你没有在nginx.conf下加以下代码:
location / {
try_files $uri $uri/ /index.php?$query_string;
}
原因二:
- storage和vendor权限不够
chmod -R 777 storage
chmod -R 777 vendor
原因三:
- PHP版本过低,推荐使用PHP的版本为7及以上。
注意:
- 可以在根目录使用php artisan env来查找错误
- 或者把config/app.php中的'debug' 改成true。
'debug' => true,
网友评论