<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Nginx with PHP as FastCGI on Gentoo Linux</title>
	<link>http://www.tummblr.com/linux/nginx-with-php-as-fastcgi-on-gentoo-linux/</link>
	<description>Records of my tumblings through the intarwebs</description>
	<pubDate>Fri, 16 May 2008 03:53:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: spiceee.com &#187; pensaletes</title>
		<link>http://www.tummblr.com/linux/nginx-with-php-as-fastcgi-on-gentoo-linux/#comment-334</link>
		<dc:creator>spiceee.com &#187; pensaletes</dc:creator>
		<pubDate>Thu, 15 May 2008 04:37:58 +0000</pubDate>
		<guid>http://www.tummblr.com/linux/nginx-with-php-as-fastcgi-on-gentoo-linux/#comment-334</guid>
		<description>[...] queira se aventurar, eu usei algumas referências que lhe podem ser úteis (1 2 [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] queira se aventurar, eu usei algumas referências que lhe podem ser úteis (1 2 [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike503</title>
		<link>http://www.tummblr.com/linux/nginx-with-php-as-fastcgi-on-gentoo-linux/#comment-317</link>
		<dc:creator>mike503</dc:creator>
		<pubDate>Tue, 08 Apr 2008 08:53:31 +0000</pubDate>
		<guid>http://www.tummblr.com/linux/nginx-with-php-as-fastcgi-on-gentoo-linux/#comment-317</guid>
		<description>spawn-fcgi sucks. It doesn't even spawn properly. Unless recently fixed. When your engines hit PHP_FCGI_MAX_REQUESTS, it should kill off the child process and restart it.

What I noticed was spawn-fcgi wouldn't. What I failed to figure out is why spawn-fcgi is needed at all?

Use upstart or daemontools or even init, and launch your engines like so:

Assuming PHP_FCGI_MAX_REQUESTS and PHP_FCGI_CHILDREN are set...

/usr/bin/sudo -u {user} /usr/local/bin/php-cgi -b {address/port}

PHP's built-in support properly spawns them and recycles them as desired.

I had ideas for a FastCGI process manager, and it looks like that idea is not needed anymore, since someone has created php-fpm. A patch that fixes some annoyances in PHP's built-in FastCGI SAPI and adds support to spawn engines as different user/group and [soon] Apache-style adaptive process spawning.

It's almost 100% perfect now, I'm excited for Andrei to complete it... use Google to translate it from Russian :)

http://php-fpm.anight.org/

I've converted all my business and corporate stuff to use PHP-FPM now. Soon I will follow with nginx... Lighttpd had a few bugs (one very obvious one) that -just- got fixed. Jan's a crazy guy but it does seem like they have been working out new stuff and not keeping up on the old as much.

Neither server does .htaccess though, but nginx at least has easier Apache style -f/-d rewrite stuff and supports SSI and PHP in the same file (a client's website... don't ask) - something that I could not get Lighty to accept (although it shouldn't need to, this website is an exception)</description>
		<content:encoded><![CDATA[<p>spawn-fcgi sucks. It doesn&#8217;t even spawn properly. Unless recently fixed. When your engines hit PHP_FCGI_MAX_REQUESTS, it should kill off the child process and restart it.</p>
<p>What I noticed was spawn-fcgi wouldn&#8217;t. What I failed to figure out is why spawn-fcgi is needed at all?</p>
<p>Use upstart or daemontools or even init, and launch your engines like so:</p>
<p>Assuming PHP_FCGI_MAX_REQUESTS and PHP_FCGI_CHILDREN are set&#8230;</p>
<p>/usr/bin/sudo -u {user} /usr/local/bin/php-cgi -b {address/port}</p>
<p>PHP&#8217;s built-in support properly spawns them and recycles them as desired.</p>
<p>I had ideas for a FastCGI process manager, and it looks like that idea is not needed anymore, since someone has created php-fpm. A patch that fixes some annoyances in PHP&#8217;s built-in FastCGI SAPI and adds support to spawn engines as different user/group and [soon] Apache-style adaptive process spawning.</p>
<p>It&#8217;s almost 100% perfect now, I&#8217;m excited for Andrei to complete it&#8230; use Google to translate it from Russian <img src='http://www.tummblr.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://php-fpm.anight.org/" rel="nofollow" onclick="javascript:pageTracker._trackPageview ('/outbound/php-fpm.anight.org');">http://php-fpm.anight.org/</a></p>
<p>I&#8217;ve converted all my business and corporate stuff to use PHP-FPM now. Soon I will follow with nginx&#8230; Lighttpd had a few bugs (one very obvious one) that -just- got fixed. Jan&#8217;s a crazy guy but it does seem like they have been working out new stuff and not keeping up on the old as much.</p>
<p>Neither server does .htaccess though, but nginx at least has easier Apache style -f/-d rewrite stuff and supports SSI and PHP in the same file (a client&#8217;s website&#8230; don&#8217;t ask) - something that I could not get Lighty to accept (although it shouldn&#8217;t need to, this website is an exception)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: movielady</title>
		<link>http://www.tummblr.com/linux/nginx-with-php-as-fastcgi-on-gentoo-linux/#comment-312</link>
		<dc:creator>movielady</dc:creator>
		<pubDate>Sat, 29 Mar 2008 19:22:29 +0000</pubDate>
		<guid>http://www.tummblr.com/linux/nginx-with-php-as-fastcgi-on-gentoo-linux/#comment-312</guid>
		<description>Question: since you're using the spawn-fcgi-new script, why does one need to install lighttpd at all? I thought the only reason for installing it was to grab the spawn-fcgi script, and since James' script works so much better... 

Thank you very much for the tutorials, btw. :)</description>
		<content:encoded><![CDATA[<p>Question: since you&#8217;re using the spawn-fcgi-new script, why does one need to install lighttpd at all? I thought the only reason for installing it was to grab the spawn-fcgi script, and since James&#8217; script works so much better&#8230; </p>
<p>Thank you very much for the tutorials, btw. <img src='http://www.tummblr.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tummblr</title>
		<link>http://www.tummblr.com/linux/nginx-with-php-as-fastcgi-on-gentoo-linux/#comment-259</link>
		<dc:creator>Tummblr</dc:creator>
		<pubDate>Sat, 26 Jan 2008 03:10:14 +0000</pubDate>
		<guid>http://www.tummblr.com/linux/nginx-with-php-as-fastcgi-on-gentoo-linux/#comment-259</guid>
		<description>@Rick: Glad it worked out for you.  I neglected to install Lighttpd myself once while following my own instructions. :/

@p3rseus: Thanks for your comment.  Unfortunately, I can't really help without more information. :(  Good luck!</description>
		<content:encoded><![CDATA[<p>@Rick: Glad it worked out for you.  I neglected to install Lighttpd myself once while following my own instructions. :/</p>
<p>@p3rseus: Thanks for your comment.  Unfortunately, I can&#8217;t really help without more information. <img src='http://www.tummblr.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick</title>
		<link>http://www.tummblr.com/linux/nginx-with-php-as-fastcgi-on-gentoo-linux/#comment-258</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Fri, 25 Jan 2008 01:57:30 +0000</pubDate>
		<guid>http://www.tummblr.com/linux/nginx-with-php-as-fastcgi-on-gentoo-linux/#comment-258</guid>
		<description>I spoke too soon. I didn't install lighttpd :/</description>
		<content:encoded><![CDATA[<p>I spoke too soon. I didn&#8217;t install lighttpd :/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick</title>
		<link>http://www.tummblr.com/linux/nginx-with-php-as-fastcgi-on-gentoo-linux/#comment-257</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Fri, 25 Jan 2008 01:29:12 +0000</pubDate>
		<guid>http://www.tummblr.com/linux/nginx-with-php-as-fastcgi-on-gentoo-linux/#comment-257</guid>
		<description>Same here... I *think* this is the error:

trap 'eerror "ERROR:  ${SVCNAME} caught an interrupt"; exit 1' INT QUIT TSTP</description>
		<content:encoded><![CDATA[<p>Same here&#8230; I *think* this is the error:</p>
<p>trap &#8216;eerror &#8220;ERROR:  ${SVCNAME} caught an interrupt&#8221;; exit 1&#8242; INT QUIT TSTP</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: p3rseus</title>
		<link>http://www.tummblr.com/linux/nginx-with-php-as-fastcgi-on-gentoo-linux/#comment-219</link>
		<dc:creator>p3rseus</dc:creator>
		<pubDate>Mon, 14 Jan 2008 14:58:01 +0000</pubDate>
		<guid>http://www.tummblr.com/linux/nginx-with-php-as-fastcgi-on-gentoo-linux/#comment-219</guid>
		<description>hi,

doesn't work for me. /etc/init.d/fcgi.php start fail. i don't find any log related.

i have php 5.2.5 installed and everything seems to be at the right place

any idea?</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>doesn&#8217;t work for me. /etc/init.d/fcgi.php start fail. i don&#8217;t find any log related.</p>
<p>i have php 5.2.5 installed and everything seems to be at the right place</p>
<p>any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tummblr</title>
		<link>http://www.tummblr.com/linux/nginx-with-php-as-fastcgi-on-gentoo-linux/#comment-95</link>
		<dc:creator>Tummblr</dc:creator>
		<pubDate>Sun, 23 Dec 2007 15:52:03 +0000</pubDate>
		<guid>http://www.tummblr.com/linux/nginx-with-php-as-fastcgi-on-gentoo-linux/#comment-95</guid>
		<description>Hi zk,

Thanks for your comment.  I actually use XCache myself.  I documented the (simple) setup steps here:
http://www.tummblr.com/linux/speed-up-php-with-xcache-on-gentoo-linux/</description>
		<content:encoded><![CDATA[<p>Hi zk,</p>
<p>Thanks for your comment.  I actually use XCache myself.  I documented the (simple) setup steps here:<br />
<a href="http://www.tummblr.com/linux/speed-up-php-with-xcache-on-gentoo-linux/" rel="nofollow">http://www.tummblr.com/linux/speed-up-php-with-xcache-on-gentoo-linux/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zk</title>
		<link>http://www.tummblr.com/linux/nginx-with-php-as-fastcgi-on-gentoo-linux/#comment-89</link>
		<dc:creator>zk</dc:creator>
		<pubDate>Tue, 18 Dec 2007 07:03:29 +0000</pubDate>
		<guid>http://www.tummblr.com/linux/nginx-with-php-as-fastcgi-on-gentoo-linux/#comment-89</guid>
		<description>Thanks for the tip on the new spawn-fcgi script. I've actually been using a script I wrote for myself, but the script referenced has some obvious advantages, :P

You should definitely tack on support for some sort of php caching...I like eaccelerator, myself.

just run: 'HTTPD_USER="nginx" HTTPD_GROUP="nginx" emerge dev-php5/eaccelerator'

Respawn your threads, check phpinfo(), and you should be good to go.</description>
		<content:encoded><![CDATA[<p>Thanks for the tip on the new spawn-fcgi script. I&#8217;ve actually been using a script I wrote for myself, but the script referenced has some obvious advantages, <img src='http://www.tummblr.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>You should definitely tack on support for some sort of php caching&#8230;I like eaccelerator, myself.</p>
<p>just run: &#8216;HTTPD_USER=&#8221;nginx&#8221; HTTPD_GROUP=&#8221;nginx&#8221; emerge dev-php5/eaccelerator&#8217;</p>
<p>Respawn your threads, check phpinfo(), and you should be good to go.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.154 seconds -->
