tp5项目从windows迁移到centos出现500错误
白糕茶 2017-01-19 10:19:19 在windows下没问题,但是上传到服务器后访问接口出现500错误,在入口文件加入error_reporting(E_ALL);
ini_set('display_errors', '1');代码打印出的错误如下:
<b>Fatal error</b>: Uncaught exception 'think\exception\ErrorException' with message 'error_log(/data/wwwroot/default/1lu8/runtime/log/201701/19.log): failed to open stream: Permission denied' in /data/wwwroot/default/1lu8/thinkphp/library/think/log/driver/File.php:98
Stack trace:
#0 [internal function]: think\Error::appError(2, 'error_log(/data...', '/data/wwwroot/d...', 98, Array)
#1 /data/wwwroot/default/1lu8/thinkphp/library/think/log/driver/File.php(98): error_log('[ 2017-01-19T10...', 3, '/data/wwwroot/d...')
#2 /data/wwwroot/default/1lu8/thinkphp/library/think/Log.php(157): think\log\driver\File->save(Array)
#3 /data/wwwroot/default/1lu8/thinkphp/library/think/Error.php(84): think\Log::save()
#4 [internal function]: think\Error::appShutdown()
#5 {main}
thrown in <b>/data/wwwroot/default/1lu8/thinkphp/library/think/log/driver/File.php</b> on line <b>98</b><br />
求大神帮忙看看怎么解决