Как мне дать eDirectory / Symfony 2.8 больше времени? Ошибка: превышено максимальное время выполнения 60 секунд

Я поставил max_execution_time до 120 секунд.

$ grep max_execution_time /etc/php5/php.ini
max_execution_time = 120

Я все еще получаю ошибку

Error: Maximum execution time of 60 seconds exceeded

После нескольких перезагрузок он будет работать (по-видимому, он компилирует Twig и LESS для кеширования), но часто это не удается, особенно для новых страниц или после запуска composer,

Я нигде не вижу, чтобы это было установлено (ниже) с помощью кода:

$ grep -r max_execution_time *
vendor/symfony/symfony/appveyor.yml:    - echo max_execution_time=1200 >> php.ini-min
web/classes/phpmailer/class.smtp.php:            $max = ini_get('max_execution_time');
web/conf/phpini.inc.php:    ini_set("max_execution_time", "3600");
web/simplesaml/modules/statistics/config-templates/module_statistics.php:        * Set max running time for this script. This is also controlle by max_execution_time in php.ini

Я тоже пытался добавить opcache чтобы ускорить это, но это не кажется быстрее.

$ grep opcache composer.json
"ext-opcache": "*",

$ cat /etc/php5/conf.d/opcache.ini
zend_extension = /usr/lib/php/20131226/opcache.dll
; Sets how much memory to use
opcache.memory_consumption=128

;Sets how much memory should be used by OPcache for storing internal strings
;(e.g. classnames and the files they are contained in)
opcache.interned_strings_buffer=8

; The maximum number of files OPcache will cache
opcache.max_accelerated_files=4000

;How often (in seconds) to check file timestamps for changes to the shared
;memory storage allocation.
opcache.revalidate_freq=60

;If enabled, a fast shutdown sequence is used for the accelerated code
;The fast shutdown sequence doesn't free each allocated block, but lets
;the Zend Engine Memory Manager do the work.
opcache.fast_shutdown=1

;Enables the OPcache for the CLI version of PHP.
opcache.enable_cli=1

;If you use any library or code that uses code annotations you must enable save comments:
opcache.save_comments=1

Symfony 2.8, PHP 5.6.27

0

Решение

я добавил

ini_set("max_execution_time", 120);

в edirectory\web\app_dev.php вокруг линии 23, прежде чем он сделает что-нибудь многое.

Как уже упоминалось в комментариях выше.

0

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector