/media/catalog/product/cache 中的图像被创建为 root:root 并因此给出 403 错误?
-
12-12-2019 - |
题
图像位于 /media/catalog/product/cache
被创建为 root:root
.
这些图像给出 403 错误。
什么文件创建这些缓存文件,是 Mage.php 吗?
我检查了根目录,所有文件都是 root:root
除了 /media
.
我正在主持 apache
解决方案
假设你的 apache 没有以 root 身份运行(我假设当你提到 403 时,你的意思是 apache 无法为其提供服务),它可能是以下之一:
- 您以 root 身份运行 cron,其中一个 cron 执行一项操作,导致生成图像缓存。
- 您从 CLI 运行了一个 shell 脚本,该脚本执行导致生成图像缓存的操作。