Hi, I'm currently using lighttpd with PHP through FastCGI. It works amazingly well, and lighttpd is now part of Fedora Extras. But in order to have FastCGI support compiled in the /usr/bin/php standalone binary (in addition to regular CGI which still works), one needs to change the following in the spec file and rebuild : # Build standalone /usr/bin/php pushd build-cgi -build --enable-force-cgi-redirect +build --enable-force-cgi-redirect \ + --enable-fastcgi \ + --enable-discard-path \ Would it be possible to make this change to the main php package for everyone to benefit from it and be able to use FastCGI out-of-the-box? I don't know the exact implications or consequences regarding the binary, but it still works fine from the command-line for me and states that is has both CGI and FastCGI enabled. Also, there is no possible consequence on the mod_php version, which is what the vast majority of people use.
Joe, any idea if this change could be done before the next FC4 test release? If it doesn't break anything, it would be really great to have it be in the default build.
I'm not really sure it's really appropriate to enable this by default, since we don't ship a web server (or module) which can speak FastCGI in Core itself; it looks like a fair chunk of extra code to build in.
But enabling software in Extras to play well with Core is something that is wanted nevertheless, no? Especially since a FastCGI-enabled php in Extras is not going to happen. If this change affected mod_php in any way, I'd be much less keen on suggesting it. But it affects only the standalone /usr/bin/php binary which very few people use (I know I do only for a few cron jobs), but that many could start using if it worked with FastCGI.
Now that there are two separate standalone binaries (one for CLI, and the other for CGI), wouldn't it be even safer to enable FastCGI in the CGI one?
Yes OK I submit :) I've enabled FastCGI support in /usr/bin/php-cgi in 5.0.4-7; can you test it and let me know whether it works? I don't have a FastCGI setup handy...