Images in /media/catalog/product/cache are created as root:root and hence give 403 errors?
-
12-12-2019 - |
Question
Images in /media/catalog/product/cache
are created as root:root
.
These images give 403 errors.
What file creates these cache files, is it Mage.php?
I have checked the root directory and all the files are root:root
except /media
.
I am hosting with apache
Solution
Assuming your apache isn't running as root (I'm assuming when you refer to a 403 you mean apache can't serve it), it's likely one of:
- You have the cron running as root and one of the crons performs an action that causes image cache to get generated.
- You ran a shell script from the CLI that performs an action that causes image cache to get generated.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange