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

glen glen at pld-linux.org
Mon Oct 27 07:04:18 CET 2014


commit 80b97147332057690ef153e0067cbd07d4c9bfe1
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Oct 27 08:04:02 2014 +0200

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

 php-fpm-config.patch | 17 +++++++++++++++--
 php.spec             |  2 +-
 2 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/php.spec b/php.spec
index 53039f9..6509338 100644
--- a/php.spec
+++ b/php.spec
@@ -119,7 +119,7 @@ ERROR: You need to select at least one Apache SAPI to build shared modules.
 %endif
 %endif
 
-%define		rel	2
+%define		rel	3
 %define		orgname	php
 %define		ver_suffix 53
 %define		php_suffix %{!?with_default_php:%{ver_suffix}}
diff --git a/php-fpm-config.patch b/php-fpm-config.patch
index 8eaa9c6..8f5bf23 100644
--- a/php-fpm-config.patch
+++ b/php-fpm-config.patch
@@ -17,8 +17,8 @@
  
  ; syslog_facility is used to specify what type of program is logging the
  ; message. This lets syslogd specify that messages from different facilities
---- php-5.3.29/sapi/fpm/php-fpm.conf-d.in	2014-10-27 07:54:50.120026865 +0200
-+++ php-5.3.29.old/sapi/fpm/php-fpm.conf-d.in	2014-10-27 07:46:00.639222822 +0200
+--- php-5.3.29.old/sapi/fpm/php-fpm.conf-d.in	2014-10-27 07:46:00.639222822 +0200
++++ php-5.3.29/sapi/fpm/php-fpm.conf-d.in	2014-10-27 08:02:11.543472244 +0200
 @@ -30,7 +30,7 @@
  ;                            specific port;
  ;   '/path/to/unix/socket' - to listen on a unix socket.
@@ -28,6 +28,19 @@
  
  ; Set listen(2) backlog. A value of '-1' means unlimited.
  ; Default Value: 128 (-1 on FreeBSD and OpenBSD)
+@@ -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
 @@ -51,7 +51,7 @@
  ; must be separated by a comma. If this value is left blank, connections will be
  ; accepted from any ip address.
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/80b97147332057690ef153e0067cbd07d4c9bfe1



More information about the pld-cvs-commit mailing list