Reputation: 3797
2012-03-21T04:01:09+00:00 DEBUG (7): fopen(/data01/virt32830/domeenid/www.montonfashion.com/htdocs/var/cache/mage--6/mage---internal-metadatas---bee_DB_PDO_MYSQL_DDL_catalog_product_flat_3_3): failed to open stream: Permission denied/data01/virt32830/domeenid/www.montonfashion.com/htdocs/lib/Zend/Cache/Backend/File.php
The question is: Why this situation might occure? I clean magento cache before import:
Mage::app()->getCacheInstance()->cleanType('block_html');
Mage::app()->getCacheInstance()->cleanType('layout');
Mage::app()->getCacheInstance()->cleanType('collections');
Mage::app()->getCacheInstance()->cleanType('eav');
Then I make import and then clean cache again.
Previously I'v cleaned cache fully. But I'v got a problem with "100 routing iterations".
Any suggestions?
Upvotes: 0
Views: 4479
Reputation: 6003
I usually fix permissions problems (and fixed this one) by discovering what is the user and group of my webserver (apache/nginx). In case of nginx we usually set this group name and user as nginx.
So I change the user and group of all folders to it using:
chown -R nginx:nginx /path/to/magento
If you have multiple users that modifies files there, you can set only the group:
chown -R :nginx /path/to/magento
I hope it helps.
Upvotes: 0
Reputation: 1030
You can to see a change in any these files with the Linux command stat. The syntax is: $ stat file_name This command will list the access, the modify and if there is change in file. This is a way of debug the problem.
Upvotes: 1
Reputation: 8836
Its permissions in the directory. Do chmod -R 666 /data01/virt32830/domeenid/www.montonfashion.com/htdocs/var/cache/*
Upvotes: 0