Bug #62172 [Asn->Csd]: FPM not working with Apache httpd 2.4 balancer/fcgi setup
| From: | remi@php.net | Date: | Fri, 29 Jan 2016 09:23:54 +0000 |
| Subject: | Bug #62172 [Asn->Csd]: FPM not working with Apache httpd 2.4 balancer/fcgi setup | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-198956@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62172&edit=1
ID: 62172
Updated by: remi@php.net
Reported by: jdr at alexanderinteractive dot com
Summary: FPM not working with Apache httpd 2.4 balancer/fcgi
setup
-Status: Assigned
+Status: Closed
Type: Bug
Package: FPM related
Operating System: CentOs 6
PHP Version: 5.4.3
Assigned To: tony2001
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of remi
Revision: http://git.php.net/?p=php-src.git;a=commit;h=07d2dcdf09fcfbd617031bd341384efb236de12c
Log: Fixed Bug #62172 FPM not working with Apache httpd 2.4 balancer/fcgi setup
Previous Comments:
------------------------------------------------------------------------
[2016-01-05 22:00:12] shawn dot starr at rogers dot com
So, I've encountered this too using this setup:
<Proxy balancer://php-fpm>
BalancerMember fcgi://127.0.0.1:9000
BalancerMember fcgi://172.31.40.234:9000
</Proxy>
ProxyPassMatch ^/(.*\.php(/.*)?)$ balancer://php-fpm/some/path/to/stuff/$1
I get same File Not Found / Script Error in apache log.
Any word on when this is being merged into PHP 5.5 and or 7?
------------------------------------------------------------------------
[2015-04-28 15:28:49] matt at haught dot org
I added patch fpm-balancer-v3. The most recent version of apache24 appear to now remove the prefix.
So the the removal of the query string needs to be moved out of the code that catches the prefixes
otherwise it will not be applied. Older apache24 will work the same and the newer version will just
have the query string cut off.
I put in a pull request that I will continue to keep up-to-date.
https://github.com/php/php-src/pull/1197
------------------------------------------------------------------------
[2015-04-28 05:22:24] quan at quanphuong dot com
Just a note: fpm-balancer-v2 patchs worked well.
------------------------------------------------------------------------
[2014-10-03 22:13:11] stefan at eriksson dot cn
Any news on this? Debian with Jessie coming out is depending on this to get load balancing of
multiple php-fpm backends over tcp from one single apache instance.
------------------------------------------------------------------------
[2014-02-01 19:50:47] matt at haught dot org
Adding copied "ignore query string if sent by Apache (RewriteRule)" bit of code in
fpm-balancer-v2 patch fixes the query problems with apache-2.4.6 proxy balancer when using
ProxyPassMatch. Without it a request for test.php works but test.php?q=1 fails with file not found.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=62172
--
Edit this bug report at https://bugs.php.net/bug.php?id=62172&edit=1