lumen 访问根目录 / Whoops, looks like something went wrong.

lumen 访问根目录 / Whoops, looks like something went wrong._第1张图片

 

检查生成session文件目录的权限

$ ls -ld storage/framework/session/
drwxr-xr-x 2 daemon daemon 4096 Oct 11 19:01 storage/framework/session/

 

E:\easyeye\src\admin\config\session.php

 env('SESSION_DRIVER', 'file'),//默认使用file驱动,你可以在.env中配置
    'lifetime' => 120,//缓存失效时间
    'expire_on_close' => false,
    'encrypt' => false,
    //     'files' => storage_path('framework/session'), //file缓存保存路径
    'files' => '/opt/easyeye/storage/framework/session',
    'connection' => null,
    'table' => 'sessions',
    'lottery' => [2, 100],
    'cookie' => 'laravel_session',
    'path' => '/',
    'domain' => null,
    'secure' => false,
];

确认session文件路径

 

你可能感兴趣的:(php,lumen,lumen,session)