Вам необходимо установить ограничения для PHP, а также для веб-сервера
IN PHP
// add these in starting of the files
ini_set('memory_limit', '1G'); //according to your requirements
//only for development will show some extra debug info.
ini_set('display_errors', true);
ini_set('max_execution_time', 0); //0=NOLIMIT
ТАКЖЕ Мы должны установить эти настройки (время и размер) на уровне веб-сервера, я предполагаю, что вы используете NGINX
IN WEBSERVER (vi /etc/nginx/nginx.conf)
keepalive_timeout 60; #try this with 600, i thing your issue belongs here
send_timeout 60; #try this with 600, i thing your issue belongs here
client_body_timeout 120; #try this with 600, i thing your issue belongs here
client_max_body_size 5G; #default is 4.5 GB so you dont need this if data is less than 4.5GB
Не забудьте перезапустить NGINX после изменения веб-сервера.
для получения дополнительной информации по nginx ограничениям нажмите здесь