Problem/Motivation
Drupal 8 appears to be needing more memory and execution time than most web hosting companies have pre-configured in their hosting packages. All kinds of installation errors can happen if you don't have enough memory or execution time.
Like:
#2021029: During Install, Inform User that they have Insufficient Memory Rather than Server Error: AJAX HTTP Result Code: 500
The default execution time on most hosting packages is still 30 seconds, which is probably too little.
Proposed resolution
Do some measurements on PHP parameters that give a reliable environment to install Drupal 8.
Update the requirements page https://drupal.org/requirements/php or / and check during installation and warn the user, if there is not sufficient memory or execution time.
Comments
Comment #1
flefle CreditAttribution: flefle commentedTested with git clone of latest Drupal 8 on Apache 2.22, PHP 5.4.16, MySQL (WAMP ver. 2.4), 128MB memory_limit.
Memory shouldn't be the issue but the execution time. A quick workaround would be:
php.ini setting:
max_execution_time = 60
or PHP
ini_set('max_execution_time', 60); //1 minute
A great feature of Drupal8 would be a requirements check at installation of this setting or ini_set included.
Furter info can be found here.
Comment #2
Wim LeersCalling
ini_set()
is evil AFAIK. Some server setups even block PHP script files containingini_set()
calls, resulting in a WSOD.Comment #2.0
Wim Leersuse [#NNN] formatter to make a nice issue link
Comment #3
Les LimOpcode cache makes a difference for me. With APC, I can make it through the installer with memory_limit = 32M. If I try again without APC, I'll hit the memory limit.
Tested on Apache 2.2.23 with PHP 5.4.10.
Comment #4
nedjoMarking as a duplicate of #2289183: Temporarily increase D8 memory limit to reflect current requirements. Although this issue is older, that one has more discussion and a patch (albeit a trivial one).
Comment #5
YesCT CreditAttribution: YesCT commentedThe other one is doing memory. We can do execution here.
Comment #6
anavarreAFAICT installer works fine with the current max_execution_time. It's been a while since this issue has been filled. Do we have any recent reports of max_execution_time being an issue, still?
Also, #3 has been discussed in the context of temporarily upgrading PHP's memory_limit in #2289183: Temporarily increase D8 memory limit to reflect current requirements.
Comment #9
roshan_shah CreditAttribution: roshan_shah commentedRan into installer issue for php 7.04 using Acquia Dev Desktop 2. Updated max_execution_time in DevDesktop\php7_0\php.ini and was able to get the site up.
Comment #19
quietone CreditAttribution: quietone at PreviousNext commentedEight years ago it was asked if this was still a problem. In the intervening time there has been one confirmation. That was 6 years ago on outdated versions of PHP and Drupal.
Therefor I am closing this as outdated.