[PHP-FPM, Nginx] Move some PHP parameters from Nginx to FPM configuration file
parent
27d3388579
commit
e79429beef
|
@ -80,9 +80,6 @@ server {
|
||||||
include /etc/nginx/fastcgi_params;
|
include /etc/nginx/fastcgi_params;
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
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;
|
fastcgi_read_timeout 1200;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,9 @@ listen = [::]:9001
|
||||||
access.log = /proc/self/fd/2
|
access.log = /proc/self/fd/2
|
||||||
clear_env = no
|
clear_env = no
|
||||||
catch_workers_output = yes
|
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]
|
[web-worker]
|
||||||
user = www-data
|
user = www-data
|
||||||
|
@ -23,3 +26,7 @@ listen = [::]:9002
|
||||||
access.log = /proc/self/fd/2
|
access.log = /proc/self/fd/2
|
||||||
clear_env = no
|
clear_env = no
|
||||||
catch_workers_output = yes
|
catch_workers_output = yes
|
||||||
|
php_admin_value[memory_limit] = 256M
|
||||||
|
php_admin_value[max_execution_time] = 1200
|
||||||
|
php_admin_value[max_input_time] = 1200
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue