首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Magento 2.0.2在共享服务器上的安装-固定在66%

Magento 2.0.2在共享服务器上的安装-固定在66%
EN

Stack Overflow用户
提问于 2016-02-05 15:19:02
回答 2查看 3K关注 0票数 0

在共享服务器上安装Magento 2时,我做了一个噩梦。问题是我在共享服务器上没有问题。我可以获得Magento所需的任何资源和配置。

但它在66%上卡住了,这是控制台日志:

代码语言:javascript
复制
    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)

我确实在本地主机上安装了它,没有任何问题。但不能让它在共享主机上工作。

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

我在网上搜索过,发布在Magento论坛上,但没有找到。

有什么想法吗?

EN

回答 2

Stack Overflow用户

发布于 2016-06-10 18:03:41

确保你的php memory_limit是足够的,比如2028M。这对我的情况很有帮助。

票数 0
EN

Stack Overflow用户

发布于 2017-05-19 21:57:30

我也面临着同样的问题。Magento安装在Installing data..上停止

运行此脚本sudo php bin/magento setup:static-content:deploy

它帮助了我和magento site开始工作。(我刚刚关闭了安装页面)

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35218372

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档