在共享服务器上安装Magento 2.0.2-卡在66% [英] Magento 2.0.2 installation on shared server - Stuck at 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.
- 删除
var/.maintenance.flag
- 删除
app/etc/config.php
&env.php
- 清理数据库.
- 在
php.ini
中,设置max_execution_time=500
- 再次运行yourmagento.com
- remove
var/.maintenance.flag
- remove
app/etc/config.php
&env.php
- cleanup you DB.
- in
php.ini
, setmax_execution_time=500
- run yourmagento.com again
完成.
这篇关于在共享服务器上安装Magento 2.0.2-卡在66%的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!