• For the know cases I may suggest that smth isn't fine with the Apache + FastCGI cooperation. Some ways to fix in similar cases look like:

    set the following line in php-fpm configuration file:

    request_terminate_timeout = 300s