From e79429beef2845fe545a1f48d9132bdeba1b6397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= Date: Sun, 10 Jun 2018 14:31:24 +0200 Subject: [PATCH] [PHP-FPM, Nginx] Move some PHP parameters from Nginx to FPM configuration file --- data/conf/nginx/site.conf | 3 --- data/conf/phpfpm/php-fpm.d/pools.conf | 7 +++++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/data/conf/nginx/site.conf b/data/conf/nginx/site.conf index e339fdf9..babf5ce3 100644 --- a/data/conf/nginx/site.conf +++ b/data/conf/nginx/site.conf @@ -80,9 +80,6 @@ server { include /etc/nginx/fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; - fastcgi_param PHP_VALUE "max_execution_time = 1200 - max_input_time = 1200 - memory_limit = 64M"; fastcgi_read_timeout 1200; } diff --git a/data/conf/phpfpm/php-fpm.d/pools.conf b/data/conf/phpfpm/php-fpm.d/pools.conf index 9b7a9646..0667c2bc 100644 --- a/data/conf/phpfpm/php-fpm.d/pools.conf +++ b/data/conf/phpfpm/php-fpm.d/pools.conf @@ -10,6 +10,9 @@ listen = [::]:9001 access.log = /proc/self/fd/2 clear_env = no catch_workers_output = yes +php_admin_value[memory_limit] = 256M +php_admin_value[max_execution_time] = 1200 +php_admin_value[max_input_time] = 1200 [web-worker] user = www-data @@ -23,3 +26,7 @@ listen = [::]:9002 access.log = /proc/self/fd/2 clear_env = no catch_workers_output = yes +php_admin_value[memory_limit] = 256M +php_admin_value[max_execution_time] = 1200 +php_admin_value[max_input_time] = 1200 +