开发者

Magento Fatal error: Maximum execution error solution, on WAMP

开发者 https://www.devze.com 2023-04-07 06:54 出处:网络
While installing Magento, on WAMP I was getting timeout errors a lot like Fatal error: Maximum execution time of 60 seconds exceeded in c:\\wamp\\www\\magento\\lib开发者_C百科\\Zend\\Db\\Statement\\P

While installing Magento, on WAMP I was getting timeout errors a lot like

  Fatal error: Maximum execution time of 60 seconds exceeded in c:\wamp\www\magento\lib开发者_C百科\Zend\Db\Statement\Pdo.php on line 228

I have no idea where to look to increase the execution time if needed. Can anyone help with this error?


change the following value in your php.ini

max_execution_time = 18000


You can also adjust the max_execution_time in your htaccess using

php_value max_execution_time 18000


This would be in your PHP ini file max_execution_time

Runtime Configuration


Try making sure your settings are:

  • max_execution_time is 0 and
  • max_input_time = 60 --> change max_input_time = 6000
  • memory_limit = 128M --> change it to memory_limit = 512MB

after this I re-installed magento and it worked for me.

I hope this helps you.


I got the same problem, as suggested I did the following changes.

  1. (wampserver-path)\bin\apache(Apache Version)\bin\php.ini - Set the value max_execution_time = 1800
  2. (wampserver-path)\bin\php(PHPVersion)\php.ini - Set the value max_execution_time = 1800

But it didn't work. Then I made the next change

  • In the host/(path-to-magento)/index.php, just after the opening <?php tag, added the following. set_time_limit(1800);
<?php
set_time_limit(1800);
//** Other bunches of code 
?>

Then tried to install a fresh copy. It worked! Hope this helps...


is this ok or not want is your Recommended ? max_execution_time = 15000 max_input_time = 15000 session.gc_maxlifetime = 15000 memory_limit = -1 upload_max_filesize = 150


I did that by deleting the file app\etc\local.xml

0

精彩评论

暂无评论...
验证码 换一张
取 消