[packages/php/PHP_5_6] set fpm socket rw accessible by http group by default (instead of root:root)

glen glen at pld-linux.org
Mon Oct 27 07:42:16 CET 2014


commit 72f7881d55a3d674bb55533443187af0ed0b28dd
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Oct 27 08:41:55 2014 +0200

    set fpm socket rw accessible by http group by default (instead of root:root)

 php-fpm-config.patch | 23 ++++++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)
---
diff --git a/php-fpm-config.patch b/php-fpm-config.patch
index aa3f4c1..cb2b91d 100644
--- a/php-fpm-config.patch
+++ b/php-fpm-config.patch
@@ -29,9 +29,9 @@
 +;  - the global prefix if it's been set (-p argument)
 +;  - @prefix@ otherwise
 +include=/etc/php/fpm.d/*.conf
---- php-5.6.2/sapi/fpm/php-fpm.conf-d.in	2014-10-27 08:15:35.350075839 +0200
-+++ php-5.6.2.old/sapi/fpm/php-fpm.conf-d.in	2014-10-27 08:07:47.762117299 +0200
-@@ -30,7 +32,7 @@
+--- php-5.6.2.old/sapi/fpm/php-fpm.conf-d.in	2014-10-27 08:07:47.762117299 +0200
++++ php-5.6.2/sapi/fpm/php-fpm.conf-d.in	2014-10-27 08:23:41.232196777 +0200
+@@ -32,7 +32,7 @@
  ;                            specific port;
  ;   '/path/to/unix/socket' - to listen on a unix socket.
  ; Note: This value is mandatory.
@@ -40,7 +40,20 @@
  
  ; Set listen(2) backlog.
  ; Default Value: 65535 (-1 on FreeBSD and OpenBSD)
-@@ -51,7 +53,7 @@
+@@ -41,9 +41,9 @@
+ ; BSD-derived systems allow connections regardless of permissions. 
+ ; Default Values: user and group are set as the running user
+ ;                 mode is set to 0660
+-;listen.owner = @php_fpm_user@
+-;listen.group = @php_fpm_group@
+-;listen.mode = 0660
++listen.owner = root
++listen.group = @php_fpm_group@
++listen.mode = 0660
+  
+ ; List of ipv4 addresses of FastCGI clients which are allowed to connect.
+ ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
+@@ -53,7 +53,7 @@
  ; must be separated by a comma. If this value is left blank, connections will be
  ; accepted from any ip address.
  ; Default Value: any
@@ -49,7 +62,7 @@
  
  ; Specify the nice(2) priority to apply to the pool processes (only if set)
  ; The value can vary from -19 (highest priority) to 20 (lower priority)
-@@ -370,7 +372,7 @@
+@@ -372,7 +372,7 @@
  ; the current environment.
  ; Default Value: clean env
  ;env[HOSTNAME] = $HOSTNAME
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/72f7881d55a3d674bb55533443187af0ed0b28dd



More information about the pld-cvs-commit mailing list