[PHP-BUG] Bug #62172 [NEW]: FPM not working with Apache httpd 2.4 balancer/fcgi setup

2012-05-27 Thread jdr at alexanderinteractive dot com
From: jdr at alexanderinteractive dot com
Operating system: CentOs 6
PHP version:  5.4.3
Package:  FPM related
Bug Type: Bug
Bug description:FPM not working with Apache httpd 2.4 balancer/fcgi setup

Description:

See bug https://bugs.php.net/bug.php?id=54152 for a description of almost
the exact same problem.
PHP now does recognize the proxy:fcgi Apache httpd 2.4 adds to the
SCRIPT_FILENAME but it does not recognize proxy:balancer


Test script:
---
Example of working apache 2.4 config

RewriteRule ^/?(.*\.php(/.*)?)$
fcgi://127.0.0.1:9000/usr/local/home/magento/app/current/$1 [P,L]

Example of non-working apache 2.4 config


BalancerMember fcgi://localhost:9000/


# Serve PHP through php-fpm: 
RewriteRule ^/?(.*\.php(/.*)?)$
balancer://magento/usr/local/home/magento/app/current/$1 [P,L]

Expected result:

I expect the same results from both apache configurations

Actual result:
--
I get a 404 on all php pages when using balancer

-- 
Edit bug report at https://bugs.php.net/bug.php?id=62172&edit=1
-- 
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=62172&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=62172&r=trysnapshot53
Try a snapshot (trunk):  
https://bugs.php.net/fix.php?id=62172&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=62172&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=62172&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=62172&r=alreadyfixed
Need backtrace:  
https://bugs.php.net/fix.php?id=62172&r=needtrace
Need Reproduce Script:   
https://bugs.php.net/fix.php?id=62172&r=needscript
Try newer version:   
https://bugs.php.net/fix.php?id=62172&r=oldversion
Not developer issue: 
https://bugs.php.net/fix.php?id=62172&r=support
Expected behavior:   
https://bugs.php.net/fix.php?id=62172&r=notwrong
Not enough info: 
https://bugs.php.net/fix.php?id=62172&r=notenoughinfo
Submitted twice: 
https://bugs.php.net/fix.php?id=62172&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=62172&r=globals
PHP 4 support discontinued:  
https://bugs.php.net/fix.php?id=62172&r=php4
Daylight Savings:https://bugs.php.net/fix.php?id=62172&r=dst
IIS Stability:   
https://bugs.php.net/fix.php?id=62172&r=isapi
Install GNU Sed: 
https://bugs.php.net/fix.php?id=62172&r=gnused
Floating point limitations:  
https://bugs.php.net/fix.php?id=62172&r=float
No Zend Extensions:  
https://bugs.php.net/fix.php?id=62172&r=nozend
MySQL Configuration Error:   
https://bugs.php.net/fix.php?id=62172&r=mysqlcfg



Bug #62172 [Com]: FPM not working with Apache httpd 2.4 balancer/fcgi setup

2012-05-27 Thread jdr at alexanderinteractive dot com
Edit report at https://bugs.php.net/bug.php?id=62172&edit=1

 ID: 62172
 Comment by:     jdr at alexanderinteractive dot com
 Reported by:    jdr at alexanderinteractive dot com
 Summary:FPM not working with Apache httpd 2.4 balancer/fcgi
 setup
 Status: Open
 Type:   Bug
 Package:FPM related
 Operating System:   CentOs 6
 PHP Version:5.4.3
 Block user comment: N
 Private report: N

 New Comment:

I added a quick patch that just duplicates some of the committed proxy:fcgi 
code. It seemed to work for me.

Unfortunately there still seems to be at least 1 issue on the apache side.
When adding query strings to a php page, I get 404s. This works fine without 
the balancer set up.

It could be related to this bug 
https://issues.apache.org/bugzilla/show_bug.cgi?id=51077


Previous Comments:

[2012-05-27 22:27:00] jdr at alexanderinteractive dot com

Description:

See bug https://bugs.php.net/bug.php?id=54152 for a description of almost the 
exact same problem.
PHP now does recognize the proxy:fcgi Apache httpd 2.4 adds to the 
SCRIPT_FILENAME but it does not recognize proxy:balancer


Test script:
---
Example of working apache 2.4 config

RewriteRule ^/?(.*\.php(/.*)?)$ 
fcgi://127.0.0.1:9000/usr/local/home/magento/app/current/$1 [P,L]

Example of non-working apache 2.4 config


BalancerMember fcgi://localhost:9000/


# Serve PHP through php-fpm: 
RewriteRule ^/?(.*\.php(/.*)?)$ 
balancer://magento/usr/local/home/magento/app/current/$1 [P,L]

Expected result:

I expect the same results from both apache configurations

Actual result:
--
I get a 404 on all php pages when using balancer






-- 
Edit this bug report at https://bugs.php.net/bug.php?id=62172&edit=1


Bug #62886 [Com]: PHP-FPM may segfault/hang on startup

2012-09-27 Thread jdr at alexanderinteractive dot com
Edit report at https://bugs.php.net/bug.php?id=62886&edit=1

 ID: 62886
 Comment by:     jdr at alexanderinteractive dot com
 Reported by:pierre at archlinux dot de
 Summary:PHP-FPM may segfault/hang on startup
 Status: Feedback
 Type:   Bug
 Package:FPM related
 Operating System:   Arch Linux
 PHP Version:5.4.6
 Assigned To:fat
 Block user comment: N
 Private report: N

 New Comment:

This patch seems to do the trick for me for php 5.4.7

Thanks!


Previous Comments:

[2012-09-26 20:26:32] jonas at brachium-system dot net

I came from #62954 - I have applied your patch against 5.3.x source.

It fixes my problem - fpm starts up normal and detaches.

fat, great work :)


[2012-09-26 19:31:50] f...@php.net

Can you please test the following path ?

The commit you mentioned to be faulty in fact did the following things:
when daemonize, the calling process waited 10s for the master process (which 
have been forked just before) to send USR1 if OK or USR2 otherwise.

There must be a problem with some external libraries using USR1 and USR2.

I've removed the signal stuff and have it replaced by a pipe(2). 

Can you please test and tell me if it fix your problem (which I never been able 
to reproduce on my side).

thx
++ fat


[2012-09-26 19:28:24] f...@php.net

The following patch has been added/updated:

Patch Name: bug62886.patch.txt
Revision:   1348687704
URL:
https://bugs.php.net/patch-display.php?bug=62886&patch=bug62886.patch.txt&revision=1348687704


[2012-09-20 10:40:48] hsatac at golang dot tw

Having the same issue.
Archlinux + PHP 5.4.7


[2012-09-17 09:59:00] pierre at archlinux dot de

It also crashes with the imap extension disabled. But it seems the number of 
enabled extensions might matter.

Anyway, we have a backtrace and the commit that introduced this issue.




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=62886


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=62886&edit=1