使用mamp重新索引magento索引器

时间:2013-02-25 16:01:14

标签: macos magento terminal

我试图在本地计算机上重新索引我的url重写magento。我用Mac,所以我有终端。当我跑 /Applications/MAMP/htdocs/..../shell/indexer.php:权限被拒绝 许可被拒绝。

2 个答案:

答案 0 :(得分:0)

indexer.php不是shell脚本(或者有shebang行)。您必须使用PHP运行它:

<path to php>/php <magento root>/shell/indexer.php

答案 1 :(得分:-2)

做一个

sudo chmod -R 777 /path/to/magento

在您的终端中仅用于测试您的localhost !!!

在您的实时环境中执行此操作

find top/directory -type f -exec chmod 0644 '{}' \;
find top/directory -type d -exec chmod 0755 '{}' \;