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

Was it helpful?

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:

  1. You have the cron running as root and one of the crons performs an action that causes image cache to get generated.
  2. 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
scroll top