diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-12-16 11:38:55 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-12-16 11:38:55 +0100 |
commit | d937e965fe4597181fd9717e8b91730d1c5fd0fa (patch) | |
tree | 95785d85b4a6af7f0463a109e2ca0618bcc16970 | |
parent | 9fab5e035ab13dd62e79aea3dc654511796b8a19 (diff) |
fpm: switch to UDS on Fedora >= 21
-rw-r--r-- | php.spec | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1376,6 +1376,17 @@ sed -e '/php-fpm.pid/s:/var:%{_localstatedir}:' \ -i $RPM_BUILD_ROOT%{_root_initddir}/%{?scl_prefix}php-fpm %endif +%if %{with_httpd2410} +# Switch to UDS +# FPM +sed -e 's@127.0.0.1:9000@/run/php-fpm/www.sock@' \ + -e 's@^;listen.acl_users@listen.acl_users@' \ + -i $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.d/www.conf +# Apache +sed -e 's@proxy:fcgi://127.0.0.1:9000@proxy:unix:/run/php-fpm/www.sock|fcgi://localhost@' \ + -i $RPM_BUILD_ROOT%{_httpd_confdir}/%{name}.conf +%endif + # LogRotate install -m 755 -d $RPM_BUILD_ROOT%{_root_sysconfdir}/logrotate.d install -m 644 %{SOURCE7} $RPM_BUILD_ROOT%{_root_sysconfdir}/logrotate.d/%{?scl_prefix}php-fpm @@ -1763,6 +1774,7 @@ fi %changelog * Mon Dec 14 2015 Remi Collet <remi@fedoraproject.org> 5.5.30-1.1 - curl: add CURL_SSLVERSION_TLSv1_x constant +- fpm: switch to UDS on Fedora >= 21 * Thu Oct 1 2015 Remi Collet <remi@fedoraproject.org> 5.5.30-1 - Update to 5.5.30 |