简体   繁体   English

导入大文件时Magento内部服务器错误

[英]Magento Internal server error while importing large file

I have a site built in magento.In the admin panel I have written a custom script to import products.For now I am uploading upto 500 products at a time. 我有一个内置于magento的网站。在管理面板中,我编写了一个自定义脚本来导入产品。现在我一次最多上传500个产品。 This process also includes importing images from diff websites. 此过程还包括从diff网站导入图像。

Now I am facing the internal server error 500 while importing the file. 现在,我在导入文件时遇到internal server error 500 As it is a big file it takes 30-40 mins to run. 由于文件很大,因此需要30-40分钟才能运行。 I have increased all the settings from php.ini 我已经从php.ini中增加了所有设置

max_execution_time to 6000
memory_limit to 1024M
upload_max_size 1000M
post_max_size 1000

What setting I am missing. 我缺少什么设置。 If I am crossing memory limit. 如果我超出内存限制。 Is there way to clear memory. 有清除内存的方法。 I have also unset the variables from my code for each loop. 我还为每个循环从代码中取消设置了变量。

you can use MAGMI for import of products http://sourceforge.net/projects/magmi/ . 您可以使用MAGMI导入产品http://sourceforge.net/projects/magmi/ I have used this script to import 20,000 products plus there images from remote site. 我已使用此脚本从远程站点导入20,000个产品以及那里的图像。 The performance and accuracy was really good. 性能和准确性非常好。

You might be missing the following settings: 您可能缺少以下设置:

file_uploads On
upload_max_filesize 1000M
max_input_time 100000
session.gc_maxlifetime 1200

This one should have "M" in the end: 最后应该有“ M”:

post_max_size 1000M

Also, did you intentionally put to here ? 另外,你故意把to这里?

memory_limit to 1024M
max_execution_time to 6000

It shouldn't be there. 它不应该在那里。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM