admin 发表于 2023-3-12 15:09:37

升级出现 Permission denied in 错误,如何解决

<h2>问题描述:</h2>

<p>升级遇到报错,经排查发现 storage/logs 中的日志,发现如下报错</p>

<p> product.ERROR: ErrorException: file_put_contents(/data/www/www.xxx.com/module/._write_check_): failed to open stream: Permission denied in /data/www/www.xxx.com/vendor/modstart/modstart/src/Core/Util/FileUtil.php:148</p>

<h2><br></h2><hr>以下是回复内容:<br><div class="ub-html content">
                                                    <p>该问题是由于系统升级时候是有php的进程操作没有全新权限导致(等效于用户 www 或者 www-data)。</p>

<p>可通过 chown -R www.www /data/xxx 或者 chmod -R 0777 /data/xxx 来解决。</p>
                                                </div><hr><br>采集网址:<br>https://modstart.com/thread/821
页: [1]
查看完整版本: 升级出现 Permission denied in 错误,如何解决