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; } diff --git a/nginx/sites/default.conf b/nginx/sites/default.conf index 75435a6e..3d1a10e6 100644 --- a/nginx/sites/default.conf +++ b/nginx/sites/default.conf @@ -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; } 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; } 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; } diff --git a/php-fpm/laravel.ini b/php-fpm/laravel.ini index 486a2cab..d491643b 100644 --- a/php-fpm/laravel.ini +++ b/php-fpm/laravel.ini @@ -4,10 +4,13 @@ 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 ; 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 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 ; 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 ;