Bug 824293

Summary: Include php-fpm in php build
Product: Red Hat Enterprise Linux 6 Reporter: Stijn Tintel <stijn+bugs>
Component: phpAssignee: Web Stack Team <webstack-team>
Status: CLOSED ERRATA QA Contact: Lukas Zachar <lzachar>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2CC: dkutalek, erik, jorton, rcollet, rh_bugzilla, tim.lavelle
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-21 05:14:06 EST Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Description Flags
php-fpm-news.txt none

Description Stijn Tintel 2012-05-23 04:06:34 EDT
Please enable php-fpm in the RHEL6 php build, so that people can serve PHP pages with Nginx instead of resource-hungry Apache without having to use a 3rd party repository for php.
Comment 2 Erik 2012-06-11 18:24:36 EDT
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.
Comment 4 Timothy Lavelle 2012-08-28 01:55:19 EDT
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?
Comment 5 Remi Collet 2012-10-12 03:40:52 EDT
Created attachment 625840 [details]

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.
Comment 6 Remi Collet 2012-10-12 04:01:05 EDT
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
Comment 11 Patrick 2012-12-22 17:43:21 EST
In php 5.3.20 there is another fix for fpm. Might want to include that one too.

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?
Comment 12 Patrick 2012-12-22 21:45:00 EST
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}

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}

In the files section add:

%files fpm
%doc sapi/fpm/CREDITS sapi/fpm/LICENSE
%dir %{_datarootdir}/fpm

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!
Comment 13 Remi Collet 2012-12-24 02:03:24 EST
As you probably noticed, this bug have been reported and fixed by us.
So yes, the fix will be included in our build.
Comment 14 Patrick 2012-12-24 02:55:16 EST
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!
Comment 15 Patrick 2013-01-03 13:34:25 EST
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!
Comment 16 errata-xmlrpc 2013-02-21 05:14:06 EST
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.