[PHP-FPM, Nginx] Move some PHP parameters from Nginx to FPM configuration file

master
André 2018-06-10 14:31:24 +02:00
parent 27d3388579
commit e79429beef
2 changed files with 7 additions and 3 deletions

View File

@ -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;
}

View File

@ -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