Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 332337 - dev-lang/php-5.2.14 does not work with www-servers/spawn-fcgi
Summary: dev-lang/php-5.2.14 does not work with www-servers/spawn-fcgi
Status: RESOLVED DUPLICATE of bug 332257
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-11 18:32 UTC by Andrii Yurchuk
Modified: 2010-08-12 08:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrii Yurchuk 2010-08-11 18:32:24 UTC
After upgrading PHP from 5.2.13 to 5.2.14 spawn-fcgi integration breaks.
Steps to reproduce:
1. Install dev-lang/php-5.2.14, www-servers/spawn-fcgi-1.6.3, www-servers/lighttpd-1.4.26-r1 (optional, for tests).
2. Configure spawn-fcgi like this:
ln -s spawn-fcgi /etc/init.d/spawn-fcgi.lighttpd
cp /etc/conf.d/spawn-fcgi /etc/conf.d/spawn-fcgi.lighttpd
The contents of /etc/conf.d/spawn-fcgi.test are as follows:

--------------
FCGI_SOCKET=/var/run/spawn-fcgi-lighttpd.socket
FCGI_ADDRESS=
FCGI_PORT=
FCGI_PROGRAM=/usr/bin/php-cgi
FCGI_CHILDREN=1
FCGI_CHROOT=
FCGI_CHDIR=
FCGI_USER=
FCGI_GROUP=
ALLOWED_ENV="PATH SHELL USER PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS"
PHP_FCGI_CHILDREN=5
PHP_FCGI_MAX_REQUESTS=500
--------------

After doing /etc/init.d/spawn-fcgi.lighttpd start get the following:

tiny ~ # /etc/init.d/spawn-fcgi.lighttpd start
spawn-fcgi.lighttpd| * Starting FastCGI application lighttpd ...
spawn-fcgi.lighttpd|spawn-fcgi: child exited with: 0                                                                                                                                                                      [ ok ]
tiny ~ # ps ax | grep php
 2197 pts/3    S+     0:00 grep --colour=auto php
tiny ~ # ls -la /var/run/spawn-fcgi/lighttpd-1.pid 
-rw-r--r-- 1 root root 0 2010-08-11 21:14 /var/run/spawn-fcgi/lighttpd-1.pid
tiny ~ # ls -la /var/run/spawn-fcgi-lighttpd.socket-1 
srwxr-xr-x 1 root root 0 2010-08-11 21:14 /var/run/spawn-fcgi-lighttpd.socket-1
tiny ~ # 

This behavior is definately caused by the new ebuild, since it all worked with 5.2.13, and broke this morning when I upgraded to 5.2.14.
This has been reproduced on x86 and ~amd64
Please let me know if I missed something or if any additional info is needed.

Reproducible: Always

Steps to Reproduce:

Actual Results:  
php-5.2.14 does not work via spawn-fcgi

Expected Results:  
php-5.2.14 works via spawn-fcgi
Comment 1 Eray Aslan gentoo-dev 2010-08-11 20:15:57 UTC
Please check bug #332257 and see if the workaround works for you
Comment 2 Grzegorz {NineX} Krzystek 2010-08-12 08:28:43 UTC
(In reply to comment #1)
> Please check bug #332257 and see if the workaround works for you
> 

this workaround works for me
Comment 3 Eray Aslan gentoo-dev 2010-08-12 08:36:32 UTC

*** This bug has been marked as a duplicate of bug 332257 ***