aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7.1/php-fpm.patch.in
blob: b6b5917e74585b55e3293b5cdaf1f0f3384b317d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
--- a/sapi/fpm/fpm/fpm_conf.c
+++ b/sapi/fpm/fpm/fpm_conf.c
@@ -1180,3 +1180,3 @@
 	if (!fpm_global_config.error_log) {
-		fpm_global_config.error_log = strdup("log/php-fpm.log");
+		fpm_global_config.error_log = strdup("log/php@_suffix@/error.log");
 	}
@@ -1191,3 +1191,3 @@
 	if (!fpm_global_config.syslog_ident) {
-		fpm_global_config.syslog_ident = strdup("php-fpm");
+		fpm_global_config.syslog_ident = strdup("php-fpm@_suffix@");
 	}
@@ -1683,3 +1683,3 @@
 		} else {
-			spprintf(&tmp, 0, "%s/etc/php-fpm.conf", fpm_globals.prefix);
+			spprintf(&tmp, 0, "%s/etc/php@_suffix@/php-fpm.conf", fpm_globals.prefix);
 		}
--- a/sapi/fpm/php-fpm.conf.in
+++ b/sapi/fpm/php-fpm.conf.in
@@ -16,3 +16,3 @@
 ; Default Value: none
-;pid = run/php-fpm.pid
+;pid = run/php-fpm@_suffix@.pid
 
@@ -22,4 +22,4 @@
 ; Note: the default prefix is @EXPANDED_LOCALSTATEDIR@
-; Default Value: log/php-fpm.log
-;error_log = log/php-fpm.log
+; Default Value: log/php@_suffix@/error.log
+;error_log = log/php@_suffix@/error.log
 
@@ -35,4 +35,4 @@
 ; which must suit common needs.
-; Default Value: php-fpm
-;syslog.ident = php-fpm
+; Default Value: php-fpm@_suffix@
+;syslog.ident = php-fpm@_suffix@
 
--- a/sapi/fpm/www.conf.in
+++ b/sapi/fpm/www.conf.in
@@ -252,3 +252,3 @@
 ; Default: not set
-;access.log = log/$pool.access.log
+;access.log = log/php@_suffix@/$pool.access.log
 
@@ -316,3 +316,3 @@
 ; Note: slowlog is mandatory if request_slowlog_timeout is set
-;slowlog = log/$pool.log.slow
+;slowlog = log/php@_suffix@/$pool.slow.log
 
@@ -410,3 +410,3 @@
 ;php_flag[display_errors] = off
-;php_admin_value[error_log] = /var/log/fpm-php.www.log
+;php_admin_value[error_log] = /var/log/php@_suffix@/$pool.error.log
 ;php_admin_flag[log_errors] = on