Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 332257

Summary: dev-lang/php-5.2.14: fastcgi not working
Product: Gentoo Linux Reporter: Markus Passerschröer <dunix>
Component: New packagesAssignee: PHP Bugs <php-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: ayurchuk, darkside
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Markus Passerschröer 2010-08-11 14:33:28 UTC
The force-cgi-redirect and discard-path USE flags have been removed from the ebuild. I get the following errors when trying to run PHP scripts with FastCGI and PHP 5.2.14:

> Connection reset by peer: mod_fcgid: error reading data from FastCGI server
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-08-11 17:19:56 UTC
seeing the same, the upgrade to 5.2.14 was not smooth, I reverted to .13 to continue running my site.
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-08-11 17:52:05 UTC
The problem is, regardless of USE=cgi setting, --disable-cgi is still passed to configure. I worked around this issue by running:

"EXTRA_ECONF="--enable-cgi --enable-fastcgi" emerge -av1 php"

it was kinda a wild guess on my part based on looking at the logs and whatnot.
Comment 3 Matti Bickel (RETIRED) gentoo-dev 2010-08-11 20:57:21 UTC
Crap. In fact, src_configure now fails to pass --enable-fastcgi. Normal cgi
should still be working.

I fixed this and readded the two missing USE flags. I'll also set up some
containers to have a test env per SAPI this week, so this won't show up again.
Thanks for noticing!
Comment 4 Eray Aslan gentoo-dev 2010-08-12 08:36:32 UTC
*** Bug 332337 has been marked as a duplicate of this bug. ***