failed to open stream: Permission denied in - php - 方帮信
分享
当前位置: 首页 >  > 技术 > 软件开发 > php

failed to open stream: Permission denied in

2021/4/18 23:02:55 浏览

Uncaught think\exception\ErrorException: error_log(/Users/***/Desktop/code/***/runtime/log/202104/18.log) failed to open stream: Permission denied in /Users//Desktop/code//thinkphp/library/think/log/driver/File.php:128Stack trace:#0 [internal function…

 Uncaught think\exception\ErrorException: error_log(/Users/***/Desktop/code/***/runtime/log/202104/18.log) failed to open stream: Permission denied in /Users//Desktop/code//thinkphp/library/think/log/driver/File.php:128

Stack trace:

#0 [internal function]: think\Error::appError(2, 'error_log(/User...', '/Users/wanchang...', 128, Array)

#1 /Users//Desktop/code//thinkphp/library/think/log/driver/File.php(128): error_log('---------------...', 3, '/Users/wanchang...')

#2 /Users//Desktop/code//thinkphp/library/think/log/driver/File.php(86): think\log\driver\File->write('---------------...', '/Users/wanchang...', false, true)

#3 /Users//Desktop/code//thinkphp/library/think/Log.php(224): think\log\driver\File->save(Array, true)

#4 /Users//Desktop/code//thinkphp/library/think/Error.php(94): think\Log->save()

#5 [internal function]: think\Error::appShutdown()

#6 {main}

  thrown in <b>/Users//Desktop/code//thinkphp/library/think/log/driver/File.php</b> on line <b>128</b><br />

image-20210418183933660.png

打开文件夹,右键选择显示简介,给所有成员读写权限,同理,如果是文件没有权限就给文件权限,如果是文件夹没有权限,就给文件夹权限。



来源:方帮信(微信:changyandoublog,邮箱:changyandou@126.com),欢迎分享!