Magento大量重建索引会导致内部服务器错误

时间:2014-06-06 07:42:53

标签: php magento reindex

我们如何重新索引拥有超过24,000种产品和数百种类别的Magento 1.7.02版本网站?

当我尝试在Magento管理索引管理中重新索引产品价格索引时,它会生成内部服务器错误500.当我检查服务器日志中的错误时,它会显示消息:

home2/mysitete/public_html/403.shtml
[Wed Jun 04 22:15:03 2014] [error] [client 101.0.79.114] client denied by server configuration: /home2/mysitete/public_html/ultimate4wheel/app/etc/local.xml
[Wed Jun 04 22:14:37 2014] [error] [client 202.191.65.162] File does not exist: /home2/mysitete/public_html/404.shtml
[Wed Jun 04 22:14:37 2014] [error] [client 202.191.65.162] File does not exist: /home2/mysitete/public_html/favicon.ico
[Wed Jun 04 22:14:36 2014] [error] [client 202.191.65.162] File does not exist: /home2/mysitete/public_html/500.shtml, referer: http://mysitetest.com.au/ultimate4wheel/index.php/admin/process/edit/process/4/key/e7cfe1aaf5b456e018f28e488e42a4bd/
[Wed Jun 04 22:13:51 2014] [error] [client 101.0.79.114] File does not exist: /home2/mysitete/public_html/403.shtml
[Wed Jun 04 22:13:51 2014] [error] [client 101.0.79.114] client denied by server configuration: /home2/mysitete/public_html/ultimate4wheel/app/etc/local.xml
[Wed Jun 04 22:13:48 2014] [error] [client 101.0.79.114] File does not exist: /home2/mysitete/public_html/403.shtml
[Wed Jun 04 22:13:48 2014] [error] [client 101.0.79.114] client denied by server configuration: /home2/mysitete/public_html/ultimate4wheel/app/etc/local.xml
[Wed Jun 04 22:13:43 2014] [error] [client 101.0.79.114] File does not exist: /home2/mysitete/public_html/403.shtml
[Wed Jun 04 22:13:43 2014] [error] [client 101.0.79.114] client denied by server configuration: /home2/mysitete/public_html/ultimate4wheel/app/etc/local.xml
[Wed Jun 04 22:13:35 2014] [error] [client 101.0.79.114] File does not exist: /home2/mysitete/public_html/403.shtml
[Wed Jun 04 22:13:35 2014] [error] [client 101.0.79.114] client denied by server configuration: /home2/mysitete/public_html/ultimate4wheel/app/etc/local.xml
[Wed Jun 04 22:13:21 2014] [error] [client 101.0.79.114] File does not exist: /home2/mysitete/public_html/403.shtml
[Wed Jun 04 22:13:21 2014] [error] [client 101.0.79.114] client denied by server configuration: /home2/mysitete/public_html/ultimate4wheel/app/etc/local.xml
[Wed Jun 04 22:12:06 2014] [error] [client 101.0.79.114] File does not exist: /home2/mysitete/public_html/403.sht

任何人都可以帮我解决它......或者正确重新索引吗?

我也尝试过增加时间限制,内存限制,跳过安全性等等但是没有像我在.htaccess文件中写的那样工作:

   php_value memory_limit 2836M
   php_value max_execution_time 2592000
   php_value max_input_time 2592000
   php_value session.gc_maxlifetime 864000
   php_value session.cookie_lifetime 864000
   php_value max_input_vars 50000

1 个答案:

答案 0 :(得分:2)

对于大规模重新索引,您应该始终尝试命令提示符。

通过命令行转到项目路径:

cd path/to/your/project/folder

然后打开" Shell"夹

cd shell

然后执行以下命令重新索引所有索引。

php indexer.php --reindexall

有关详细信息,请查看此link

Magento link