From f505d3681d7b7245d775d8b0c4a280be8f3a4855 Mon Sep 17 00:00:00 2001 From: polytan02 Date: Wed, 29 Jun 2016 14:50:46 +0100 Subject: [PATCH] Avois error 504 while uploading big files --- conf/nginx.conf | 1 + conf/php-fpm.conf | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index eb9c385..4a7d958 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -14,6 +14,7 @@ location YNH_WWW_PATH { fastcgi_param REMOTE_USER $remote_user; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $request_filename; + fastcgi_read_timeout 600; } # Include SSOWAT user panel. diff --git a/conf/php-fpm.conf b/conf/php-fpm.conf index a12bf95..23c6fa7 100644 --- a/conf/php-fpm.conf +++ b/conf/php-fpm.conf @@ -159,7 +159,7 @@ ping.path = /ping ; does not stop script execution for some reason. A value of '0' means 'off'. ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) ; Default Value: 0 -request_terminate_timeout = 120s +request_terminate_timeout = 600s ; The timeout for serving a single request after which a PHP backtrace will be ; dumped to the 'slowlog' file. A value of '0s' means 'off'. @@ -241,3 +241,4 @@ catch_workers_output = yes php_value[upload_max_filesize] = 50M php_value[post_max_size] = 50M php_value[mail.add_x_header] = Off +php_value[max_execution_time] = 6000s