Reputation: 1076
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.
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)
I did install it on localhost with no issues. But can't get it work on Shared Hosting.
Max execution time is set to 60, max allowed packet in MySQL set to 268M, max_input_vars 5000, memory_limit 512M.
I have searched the web, posted on Magento forums, with no luck.
Any ideas?
Upvotes: 0
Views: 3215
Reputation: 9
max_execution_time 500
Try to increase your ram as well if you are using virtual machine
Restart the installation.
Regards,
Upvotes: 0
Reputation: 2333
I faced with the same problem. Magento installation stoped on Installing data..
Run this script sudo php bin/magento setup:static-content:deploy
It helped me and magento site srtarted to work. (I just closed installation page)
Upvotes: 0
Reputation: 115
max_execution_time
and set to 200 or 300. (mine original was 60)Good luck.
Upvotes: 0
Reputation: 7
make sure your php memory_limit should be sufficient, like 2028M. this helps in my case .
Upvotes: 0
Reputation: 531
In my case, it is about timeout issue.
var/.maintenance.flag
app/etc/config.php
& env.php
php.ini
, set max_execution_time=500
Done.
Upvotes: 3