在共享服务器上安装Magento 2时,我做了一个噩梦。问题是我在共享服务器上没有问题。我可以获得Magento所需的任何资源和配置。
但它在66%上卡住了,这是控制台日志:
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论坛上,但没有找到。
有什么想法吗?
发布于 2016-06-10 18:03:41
确保你的php memory_limit是足够的,比如2028M。这对我的情况很有帮助。
发布于 2017-05-19 21:57:30
我也面临着同样的问题。Magento安装在Installing data..
上停止
运行此脚本sudo php bin/magento setup:static-content:deploy
它帮助了我和magento site开始工作。(我刚刚关闭了安装页面)
https://stackoverflow.com/questions/35218372
复制相似问题