gpt4 book ai didi

php - 修补匠在Laravel 5.8中给出了异常(exception)

转载 作者:行者123 更新时间:2023-12-03 08:43:27 24 4
gpt4 key购买 nike

Writing to /home/vishu/ .config/psysh is not allowed

Laravel Project Permissions

异常(exception):不允许写入/home/vishu/.config/psysh。

在/usr/share/nginx/html/example/vendor/psy/psysh/src/ConfigPaths.php:228

 @\mkdir($dir, 0700, true);
}

if (!\is_dir($dir) || !\is_writable($dir)) {
\trigger_error(\sprintf('Writing to %s is not allowed.', $dir), E_USER_NOTICE);

return false;
}

最佳答案

如果项目处于开发状态,则可以将整个storage目录权限更改为777:

sudo chmod -R 777 storage/

关于php - 修补匠在Laravel 5.8中给出了异常(exception),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59626930/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com