thinkphp权限问题
来源:11-3 Laravel运行环境配置(下)

慕瓜9466948
2018-03-07
老师,我在centos中搭好了tp5的环境把我自己的网站了上去但是没有效果
这是www-error的错误代码
[07-Mar-2018 17:09:15 PRC] PHP Fatal error: Uncaught exception 'think\exception\ErrorException' with message 'error_log(/data/www/mytpmall/runtime/log/201803/07.log): failed to open stream: Permission denied' in /data/www/mytpmall/thinkphp/library/think/log/driver/File.php:125 Stack trace: #0 [internal function]: think\Error::appError(2, 'error_log(/data...', '/data/www/mytpm...', 125, Array) #1 /data/www/mytpmall/thinkphp/library/think/log/driver/File.php(125): error_log('---------------...', 3, '/data/www/mytpm...') #2 /data/www/mytpmall/thinkphp/library/think/log/driver/File.php(80): think\log\driver\File->write('[ info ] [ LANG...', '/data/www/mytpm...') #3 /data/www/mytpmall/thinkphp/library/think/Log.php(179): think\log\driver\File->save(Array) #4 /data/www/mytpmall/thinkphp/library/think/Error.php(93): think\Log::save() #5 [internal function]: think\Error::appShutdown() #6 {main} thrown in /data/www/mytpmall/thinkphp/library/think/log/driver/File.php on line 125
然后我在/data/www/mytpmall/runtime里执行chmod -R 777 log也没有解决,麻烦老师帮我看一下,谢谢
写回答
2回答
-
编程浪子
2018-03-18
可以把www目录所属人和组改成等了人,搜索chmod
022018-03-26 -
编程浪子
2018-03-18
g(/data/www/mytpmall/runtime/log/201803/07.log): failed to open stream: Permission denied
这句话表示没有权限00
相似问题
关于免登录的疑问
回答 1