- added "memory_limit" >= 128MB as new requirement to /setup page
This commit is contained in:
@@ -540,6 +540,13 @@ class Setup extends Controller {
|
||||
'check' => function_exists('exec') == $f3->get('REQUIREMENTS.PHP.EXEC'),
|
||||
'tooltip' => 'exec() funktion. Check "disable_functions" in php.ini'
|
||||
],
|
||||
'memoryLimit' => [
|
||||
'label' => 'memory_limit',
|
||||
'required' => $f3->get('REQUIREMENTS.PHP.MEMORY_LIMIT'),
|
||||
'version' => ini_get('memory_limit'),
|
||||
'check' => ini_get('memory_limit') >= $f3->get('REQUIREMENTS.PHP.MEMORY_LIMIT'),
|
||||
'tooltip' => 'PHP default = 64MB.'
|
||||
],
|
||||
'maxInputVars' => [
|
||||
'label' => 'max_input_vars',
|
||||
'required' => $f3->get('REQUIREMENTS.PHP.MAX_INPUT_VARS'),
|
||||
|
||||
@@ -36,6 +36,10 @@ EXEC = 1
|
||||
; max execution time for requests (seconds)
|
||||
MAX_EXECUTION_TIME = 10
|
||||
|
||||
; max memory limit
|
||||
; some requests e.g. build indexes on /setup page require more RAM
|
||||
MEMORY_LIMIT = 128M
|
||||
|
||||
; max variable size for $_GET, $_POST and $_COOKIE
|
||||
; this is required for importing larger maps
|
||||
; http://php.net/manual/en/info.configuration.php
|
||||
|
||||
Reference in New Issue
Block a user