Bug 824293
| Summary: | Include php-fpm in php build | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Stijn Tintel <stijn+bugs> | ||||
| Component: | php | Assignee: | Remi Collet <rcollet> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Lukáš Zachar <lzachar> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 6.2 | CC: | dkutalek, erik, jorton, rcollet, rh_bugzilla, tim.lavelle | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2013-02-21 10:14:06 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Stijn Tintel
2012-05-23 08:06:34 UTC
More generally, it would be great to disassociate PHP and Apache to make php-fpm a real "application server" rather than an extension of Apache. See [#698086] also. I would also like to ask that this is included as part of the PHP build. I'm setting up a new server environment with 13 licenses of RHEL 6.3, and our sys admins are a bit reserved to allow the use of PHP-FPM on the servers because it's not supported by RH. With nginx becoming a very popular, rising start in the web server world, we need have this as part of our nginx farm. Can we get any update on this please? Created attachment 625840 [details]
php-fpm-news.txt
All the NEWS entry, from php-src, related to php-fpm.
As FPM was introduced, as new feature, in 5.3.3 and get more visibility, a lot of fixes / changes occur on next versions. Need to select the "mandatory" ones.
Which seems really needed: * all security fixes * "test" option (before service reload) * "daemonize" option * status page * log fixes * drop of libevent dependency * pid location * process control options In php 5.3.20 there is another fix for fpm. Might want to include that one too. https://bugs.php.net/bug.php?id=63581 Don't know if it is possible but wouldn't it be simpler to just replace the fpm code in 5.3.3 with the fpm code from 5.3.20? I did a quick test on a 6.3 x86_64 box by replacing the fpm code in the php-5.3.3 RPM with the version from php-5.3.20. Added to the php-5.3.3 specfile:
In the prep section add:
# replace fpm with the version from php-5.3.20
pushd sapi
rm -rf fpm
tar xvzf %{SOURCE4}
popd
In the build section after the build-cgi part add:
# Build /usr/bin/php-fpm with the CGI SAPI
pushd build-fpm
build --enable-fpm ${without_shared}
popd
In the files section add:
%files fpm
%defattr(-,root,root)
%doc sapi/fpm/CREDITS sapi/fpm/LICENSE
%{_sbindir}/php-fpm
%{_mandir}/man8/php-fpm.8*
%{_sysconfdir}/php-fpm.*
%{_initrddir}/php-fpm
%dir %{_datarootdir}/fpm
%{_datarootdir}/fpm/status.html
Built fine for me. Next I installed it, copied /etc/php-fpm.conf.default to /etc/php-fpm.conf, did minimal tweaks, setenforce 0 and then did service php-fpm start which started fine. Did not do any other tests.
Hope this helps anyone. Happy holidays!
As you probably noticed, this bug have been reported and fixed by us. So yes, the fix will be included in our build. Hi Remi. I had not noticed that but I'm glad that a fix will be included. I look forward to trying out the new build. Thank you (guys) for your efforts! Is a php EL6 SRPM with fpm enabled available somewhere? In koji I see php-5.3.20 with fpm enabled for F16 but I could not find an SRPM for EL6. The php-5.3.3-14 RPM for EL6 does not have fpm enabled. Thanks! Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0514.html |