Magento extension: Root Category As Homepage

It is my first time publish an Magento extension – Qian_Rcah. By default, Magento prevent root category from being shown at frontend, not to say use it as homepage. I do not see significant security leaks if showing root category. There are some benefits using root category as homepage: Layered navigation starts with a complete… Continue reading Magento extension: Root Category As Homepage

How can Magento generate sitemap.xml belongs to root?

今天看到 magento 目录下的 sitemap.xml 的属主和属组分别是 root:root,属性是644,而这一台的 webserver 是以 apache:apache 身份运行的,所以我觉得很奇怪: apache 怎么能建立一个 root:root 的文件? 如果这个文件不是 apache 建的,apache 怎么有权去更新它(最近更新就在今天)? 想了好一会明白过来,sitemap.xml 是 cron job 建的,crontab 这么写 */10 * * * * /usr/bin/php -f /path/to/magento/cron.php 那么 sitemap.xml 归 root:root 所有就不奇怪了。 我想这样写会好些: */10 * * * * sudo -u apache -g apache /usr/bin/php -f /path/to/magento/cron.php 2010年6月29日更新:上行命令不对,设想在 cron job 里以… Continue reading How can Magento generate sitemap.xml belongs to root?