在共享服务器上安装Magento 2.0.2-卡在66% [英] Magento 2.0.2 installation on shared server - Stuck at 66%

查看:372
本文介绍了在共享服务器上安装Magento 2.0.2-卡在66%的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在共享服务器上安装Magento 2的噩梦.问题是共享服务器没有问题.我可以根据Magento的需要获得尽可能多的资源和配置.

I've been having a nightmare with Magento 2 installation on shared server. The thing is that I don't have problems with shared server. I can get as much resources and config as Magento needs.

但是它停留在66%的位置,这是控制台日志:

But it gets stuck on 66% and this is Console log:

    Module 'Magento_Directory':
    Installing data.. 
    [ERROR] exception 'Exception' with message 'Warning: Error while sending QUERY packet. PID=47710 in 
/home/gottstor/public_html/store/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php on line 228' in /home/gottstor/public_html/store/vendor/magento/framework/App/ErrorHandler.php:61
    Stack trace:
    #0 [internal function]: Magento\Framework\App\ErrorHandler->handler(2, 'Error while sen...', '/home/gottstor/...', 228, Array)
    #1 /home/gottstor/public_html/store/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array)
    #2 /home/gottstor/public_html/store/vendor/magento/framework/DB/Statement/Pdo/Mysql.php(95): Zend_Db_Statement_Pdo->_execute(Array)
    #3 /home/gottstor/public_html/store/vendor/magento/zendframework1/library/Zend/Db/Statement.php(303): Magento\Framework\DB\Statement\Pdo\Mysql->_execute(Array)
    #4 /home/gottstor/public_html/store/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)

我确实在localhost上安装了它,没有任何问题.但是不能在共享主机上使用它.

I did install it on localhost with no issues. But can't get it work on Shared Hosting.

最大执行时间设置为60,MySQL中允许的最大数据包设置为268M,max_input_vars 5000,memory_limit 512M.

Max execution time is set to 60, max allowed packet in MySQL set to 268M, max_input_vars 5000, memory_limit 512M.

我搜索了在Magento论坛上发布的网络,但没有运气.

I have searched the web, posted on Magento forums, with no luck.

有什么想法吗?

推荐答案

就我而言,这与超时问题有关.

In my case, it is about timeout issue.

  1. 删除var/.maintenance.flag
  2. 删除app/etc/config.php& env.php
  3. 清理数据库.
  4. php.ini中,设置max_execution_time=500
  5. 再次运行yourmagento.com
  1. remove var/.maintenance.flag
  2. remove app/etc/config.php & env.php
  3. cleanup you DB.
  4. in php.ini, set max_execution_time=500
  5. run yourmagento.com again

完成.

这篇关于在共享服务器上安装Magento 2.0.2-卡在66%的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆