From 639b14445f5bb203719cd8d4e8d85bf0911a8850 Mon Sep 17 00:00:00 2001 From: nymd Date: Mon, 29 Jan 2018 16:31:48 -0800 Subject: [PATCH 1/9] Update default.conf --- nginx/sites/default.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/nginx/sites/default.conf b/nginx/sites/default.conf index 75435a6e..d3e161da 100644 --- a/nginx/sites/default.conf +++ b/nginx/sites/default.conf @@ -18,6 +18,7 @@ server { fastcgi_buffers 16 16k; fastcgi_buffer_size 32k; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_read_timeout 600; include fastcgi_params; } From fad7c11d534af322cd8cae2cc7954cd0d5c1f7bb Mon Sep 17 00:00:00 2001 From: nymd Date: Mon, 29 Jan 2018 16:32:18 -0800 Subject: [PATCH 2/9] laravel timeouts --- php-fpm/laravel.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/php-fpm/laravel.ini b/php-fpm/laravel.ini index 486a2cab..1ef22c05 100644 --- a/php-fpm/laravel.ini +++ b/php-fpm/laravel.ini @@ -11,3 +11,6 @@ upload_max_filesize = 20M ; Sets max size of post data allowed. ; http://php.net/post-max-size post_max_size = 20M +max_execution_time=600 +default_socket_timeout=3600 +request_terminate_timeout=600 From 6e96b1c6f93daae56e40c704cfb9ef49320c734d Mon Sep 17 00:00:00 2001 From: nymd Date: Mon, 29 Jan 2018 16:38:09 -0800 Subject: [PATCH 3/9] Update default.conf --- nginx/sites/default.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/nginx/sites/default.conf b/nginx/sites/default.conf index d3e161da..3d1a10e6 100644 --- a/nginx/sites/default.conf +++ b/nginx/sites/default.conf @@ -18,6 +18,7 @@ server { fastcgi_buffers 16 16k; fastcgi_buffer_size 32k; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + #fixes timeouts fastcgi_read_timeout 600; include fastcgi_params; } From f05fdc71d5e8bc8f428aa4ddc1b2e7b1b7880567 Mon Sep 17 00:00:00 2001 From: nymd Date: Wed, 31 Jan 2018 16:46:45 -0800 Subject: [PATCH 4/9] doubling memory limit for php on brokers --- php-fpm/laravel.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php-fpm/laravel.ini b/php-fpm/laravel.ini index 1ef22c05..d491643b 100644 --- a/php-fpm/laravel.ini +++ b/php-fpm/laravel.ini @@ -4,7 +4,7 @@ log_errors=On ; Maximum amount of memory a script may consume (128MB) ; http://php.net/memory-limit -memory_limit = 128M +memory_limit = 256M ; Maximum allowed size for uploaded files. ; http://php.net/upload-max-filesize upload_max_filesize = 20M From e792aa654e41c394b2fc186cd392dd507f316bd2 Mon Sep 17 00:00:00 2001 From: "R. L. Fornea" Date: Thu, 8 Feb 2018 12:58:37 -0500 Subject: [PATCH 5/9] Update php71.ini --- php-fpm/php71.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/php-fpm/php71.ini b/php-fpm/php71.ini index 53e3a4f9..9bf5f6ce 100644 --- a/php-fpm/php71.ini +++ b/php-fpm/php71.ini @@ -380,7 +380,7 @@ expose_php = On ; Maximum execution time of each script, in seconds ; http://php.net/max-execution-time ; Note: This directive is hardcoded to 0 for the CLI SAPI -max_execution_time = 30 +max_execution_time = 600 ; Maximum amount of time each script may spend parsing request data. It's a good ; idea to limit this time on productions servers in order to eliminate unexpectedly @@ -390,7 +390,7 @@ max_execution_time = 30 ; Development Value: 60 (60 seconds) ; Production Value: 60 (60 seconds) ; http://php.net/max-input-time -max_input_time = 60 +max_input_time = 120 ; Maximum input variable nesting level ; http://php.net/max-input-nesting-level @@ -401,7 +401,7 @@ max_input_time = 60 ; Maximum amount of memory a script may consume (128MB) ; http://php.net/memory-limit -memory_limit = 128M +memory_limit = 256M ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Error handling and logging ; From 82a2681eed8b176da66fd0856cc59ddf01b2e999 Mon Sep 17 00:00:00 2001 From: "R. L. Fornea" Date: Thu, 8 Feb 2018 12:59:34 -0500 Subject: [PATCH 6/9] Update php70.ini --- php-fpm/php70.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/php-fpm/php70.ini b/php-fpm/php70.ini index 53e3a4f9..9bf5f6ce 100644 --- a/php-fpm/php70.ini +++ b/php-fpm/php70.ini @@ -380,7 +380,7 @@ expose_php = On ; Maximum execution time of each script, in seconds ; http://php.net/max-execution-time ; Note: This directive is hardcoded to 0 for the CLI SAPI -max_execution_time = 30 +max_execution_time = 600 ; Maximum amount of time each script may spend parsing request data. It's a good ; idea to limit this time on productions servers in order to eliminate unexpectedly @@ -390,7 +390,7 @@ max_execution_time = 30 ; Development Value: 60 (60 seconds) ; Production Value: 60 (60 seconds) ; http://php.net/max-input-time -max_input_time = 60 +max_input_time = 120 ; Maximum input variable nesting level ; http://php.net/max-input-nesting-level @@ -401,7 +401,7 @@ max_input_time = 60 ; Maximum amount of memory a script may consume (128MB) ; http://php.net/memory-limit -memory_limit = 128M +memory_limit = 256M ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Error handling and logging ; From 91d202dff45db5e1d21a4df9d4fc815ec8616438 Mon Sep 17 00:00:00 2001 From: "Yu-Lung Shao (Allen)" Date: Mon, 26 Feb 2018 15:47:23 +0800 Subject: [PATCH 7/9] Update laravel.conf.example --- nginx/sites/laravel.conf.example | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nginx/sites/laravel.conf.example b/nginx/sites/laravel.conf.example index 6ba79aa8..40cd8427 100644 --- a/nginx/sites/laravel.conf.example +++ b/nginx/sites/laravel.conf.example @@ -18,6 +18,8 @@ server { fastcgi_buffers 16 16k; fastcgi_buffer_size 32k; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + #fixes timeouts + fastcgi_read_timeout 600; include fastcgi_params; } From dd751c56b759f1497263bf6aa2de50fd385b258c Mon Sep 17 00:00:00 2001 From: "Yu-Lung Shao (Allen)" Date: Mon, 26 Feb 2018 15:47:45 +0800 Subject: [PATCH 8/9] Update app.conf.example --- nginx/sites/app.conf.example | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nginx/sites/app.conf.example b/nginx/sites/app.conf.example index 25acaca4..d8f29ebe 100644 --- a/nginx/sites/app.conf.example +++ b/nginx/sites/app.conf.example @@ -18,6 +18,8 @@ server { fastcgi_buffers 16 16k; fastcgi_buffer_size 32k; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + #fixes timeouts + fastcgi_read_timeout 600; include fastcgi_params; } From 6fe3dc75b33450cf6badf02d6ad16e730e9c224a Mon Sep 17 00:00:00 2001 From: "Yu-Lung Shao (Allen)" Date: Mon, 26 Feb 2018 15:48:06 +0800 Subject: [PATCH 9/9] Update symfony.conf.example --- nginx/sites/symfony.conf.example | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nginx/sites/symfony.conf.example b/nginx/sites/symfony.conf.example index fe14a27b..67967157 100644 --- a/nginx/sites/symfony.conf.example +++ b/nginx/sites/symfony.conf.example @@ -20,6 +20,8 @@ server { fastcgi_split_path_info ^(.+\.php)(/.*)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + #fixes timeouts + fastcgi_read_timeout 600; fastcgi_param HTTPS off; }