Yii2 with Opcache.fast_shutdown = 1 causes Apache crash


I have some weird problem with my Yii2 app - from time to time it crashes Apache server without any PHP errors.

Apache error logs for this event are:

I’m using PHP 5.6.12.

I’ve discovered that problem only occurs with Opcache enabled and active option “fast_shutdown”.

I’m using “nenad/yii2-basic-template” with a few extensions:

"require": {

        "php": ">=5.4.0",

        "yiisoft/yii2": "*",

        "yiisoft/yii2-bootstrap": "*",

        "yiisoft/yii2-swiftmailer": "*",

        "nenad/yii2-password-strength": "*",

        "dmstr/yii2-adminlte-asset": "2.*",

        "codemix/yii2-localeurls": "^1.4",

        "yiisoft/yii2-jui": "^2.0",

        "himiklab/yii2-recaptcha-widget" : "*",

        "pendalf89/yii2-filemanager": "*",

        "zxbodya/yii2-image-attachment": "*@dev",

        "zxbodya/yii2-gallery-manager": "*@dev",

        "kartik-v/yii2-widget-timepicker": "*",

        "kartik-v/yii2-grid": "@dev"


I have a few other Yii2 apps on my server and only this one causes this problem. I’ve tested in both on Windows (XAMPP) and on Debian.

Has anyone encountered similar problem? How can I track it’s cause?

Please help :unsure: