<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Gentoo Linux and nginx with PHP-FPM</title>
	<atom:link href="http://barelysufficient.org/2010/06/gentoo-and-php-fpm/feed/" rel="self" type="application/rss+xml" />
	<link>http://barelysufficient.org/2010/06/gentoo-and-php-fpm/</link>
	<description>&#039;cause giving the walls a new coat of paint is just way to much</description>
	<lastBuildDate>Thu, 26 Jan 2012 07:35:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Ole Markus</title>
		<link>http://barelysufficient.org/2010/06/gentoo-and-php-fpm/#comment-13</link>
		<dc:creator>Ole Markus</dc:creator>
		<pubDate>Wed, 30 Jun 2010 09:03:29 +0000</pubDate>
		<guid isPermaLink="false">http://olemarkus.org/?p=57#comment-13</guid>
		<description>Hi Liz!

FPM is just like any other FastCGI implementation, so it should work fine with lighttpd. In contrast to nginx, lighty is able to manage fcgi processes. Since nginx does not have such a process manager, the SAPIs has to handle it themselves. The old PHP FCGI SAPI did not. Of course, FPM has other advantages than just managing processes, such as more advanced process management and logging of slow requests.

The configuration should not be much more different than when using the old SAPI, which is described in the &lt;a href=&quot;http://redmine.lighttpd.net/wiki/1/Docs:ModFastCGI#FastCGI-and-Programming-Languages&quot; rel=&quot;nofollow&quot;&gt;Lighttpd docs&lt;/a&gt;. The difference would be that you don&#039;t let lighty deal with process spawning, so omit &lt;code&gt;&quot;socket&quot;&lt;/code&gt; and the &lt;code&gt;PHP_FCGI_*&lt;/code&gt; environment variables.

If you like, I can write another post on how to set PHP-FPM with Lighttpd.

Cheers!</description>
		<content:encoded><![CDATA[<p>Hi Liz!</p>
<p>FPM is just like any other FastCGI implementation, so it should work fine with lighttpd. In contrast to nginx, lighty is able to manage fcgi processes. Since nginx does not have such a process manager, the SAPIs has to handle it themselves. The old PHP FCGI SAPI did not. Of course, FPM has other advantages than just managing processes, such as more advanced process management and logging of slow requests.</p>
<p>The configuration should not be much more different than when using the old SAPI, which is described in the <a href="http://redmine.lighttpd.net/wiki/1/Docs:ModFastCGI#FastCGI-and-Programming-Languages" rel="nofollow">Lighttpd docs</a>. The difference would be that you don&#8217;t let lighty deal with process spawning, so omit <code>"socket"</code> and the <code>PHP_FCGI_*</code> environment variables.</p>
<p>If you like, I can write another post on how to set PHP-FPM with Lighttpd.</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Liz</title>
		<link>http://barelysufficient.org/2010/06/gentoo-and-php-fpm/#comment-12</link>
		<dc:creator>Liz</dc:creator>
		<pubDate>Wed, 30 Jun 2010 07:59:25 +0000</pubDate>
		<guid isPermaLink="false">http://olemarkus.org/?p=57#comment-12</guid>
		<description>Is it possible to use php-fpm also with lighttpd?</description>
		<content:encoded><![CDATA[<p>Is it possible to use php-fpm also with lighttpd?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alfred</title>
		<link>http://barelysufficient.org/2010/06/gentoo-and-php-fpm/#comment-9</link>
		<dc:creator>alfred</dc:creator>
		<pubDate>Tue, 29 Jun 2010 13:17:38 +0000</pubDate>
		<guid isPermaLink="false">http://olemarkus.org/?p=57#comment-9</guid>
		<description>It works! :D
I disabled snmp USE flag and it works. In fact, snmpd was emerged when first time I tried to emerge php with snmp enabled, and there&#039;s no available configuration for snmpd to start with.
Thanks a million :P</description>
		<content:encoded><![CDATA[<p>It works! <img src='http://barelysufficient.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
I disabled snmp USE flag and it works. In fact, snmpd was emerged when first time I tried to emerge php with snmp enabled, and there&#8217;s no available configuration for snmpd to start with.<br />
Thanks a million <img src='http://barelysufficient.org/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ole Markus</title>
		<link>http://barelysufficient.org/2010/06/gentoo-and-php-fpm/#comment-8</link>
		<dc:creator>Ole Markus</dc:creator>
		<pubDate>Mon, 28 Jun 2010 16:05:24 +0000</pubDate>
		<guid isPermaLink="false">http://olemarkus.org/?p=57#comment-8</guid>
		<description>Hi again, Alfred.

If you are on x86, you are doing the correct thing. I assumed that Gentoo users would be clever enough to figure that out, as you did :)

Regarding your problem, it is a known issue (&lt;a href=&quot;http://bugs.gentoo.org/show_bug.cgi?id=324739&quot; rel=&quot;nofollow&quot;&gt;Bug 324739&lt;/a&gt;) and it affects not only many versions of PHP, but also other packages (see &lt;a href=&quot;http://forums.gentoo.org/viewtopic-t-832879.html&quot; rel=&quot;nofollow&quot;&gt;this forum post&lt;/a&gt;)

I am not sure what the correct solution for you is since I haven&#039;t encountered this problem myself. But take a look at the links I just gave you. Maybe you can figure something out. My guess would be to stop snmpd and maybe disable the snmp USE flag if you have it enabled.

Sorry I could not be of more help.

Cheers!</description>
		<content:encoded><![CDATA[<p>Hi again, Alfred.</p>
<p>If you are on x86, you are doing the correct thing. I assumed that Gentoo users would be clever enough to figure that out, as you did <img src='http://barelysufficient.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Regarding your problem, it is a known issue (<a href="http://bugs.gentoo.org/show_bug.cgi?id=324739" rel="nofollow">Bug 324739</a>) and it affects not only many versions of PHP, but also other packages (see <a href="http://forums.gentoo.org/viewtopic-t-832879.html" rel="nofollow">this forum post</a>)</p>
<p>I am not sure what the correct solution for you is since I haven&#8217;t encountered this problem myself. But take a look at the links I just gave you. Maybe you can figure something out. My guess would be to stop snmpd and maybe disable the snmp USE flag if you have it enabled.</p>
<p>Sorry I could not be of more help.</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alfred</title>
		<link>http://barelysufficient.org/2010/06/gentoo-and-php-fpm/#comment-7</link>
		<dc:creator>alfred</dc:creator>
		<pubDate>Mon, 28 Jun 2010 15:13:41 +0000</pubDate>
		<guid isPermaLink="false">http://olemarkus.org/?p=57#comment-7</guid>
		<description>Thank you very much, but I didn&#039;t manage to get php emerged.

I did a synchronization to refresh my local layman portage, then unmasked dev-lang/php with fpm enable. What differs from your post is that I use ~x86 instead of ~amd64 as my gentoo is in 32-bit.

I noticed that the source was built completely and successfully, but it failed after &quot;Don&#039;t forget to run make test&quot; when trying to start build_precommand.php. This operation was stopped and recorded in sandbox log as below.

---------------------------------------------------------
F: open_wr
S: deny
P: /usr/share/snmp/mibs/.index
A: /usr/share/snmp/mibs/.index
R: /usr/share/snmp/mibs/.index
C: /var/tmp/portage/dev-lang/php-5.3.3_rc1/work/php-5.3.3RC1/sapi/cli/php -n -d open_basedir= -d output_buffering=0 -d memory_limit=-1 -d phar.readonly=0 -d safe_mode=0 /var/tmp/portage/dev-lang/php-5.3.3_rc1/work/php-5.3.3RC1/ext/phar/build_precommand.php
---------------------------------------------------------

I&#039;m not sure what the problem is or whether I did something wrong. Would you please give me a hand?</description>
		<content:encoded><![CDATA[<p>Thank you very much, but I didn&#8217;t manage to get php emerged.</p>
<p>I did a synchronization to refresh my local layman portage, then unmasked dev-lang/php with fpm enable. What differs from your post is that I use ~x86 instead of ~amd64 as my gentoo is in 32-bit.</p>
<p>I noticed that the source was built completely and successfully, but it failed after &#8220;Don&#8217;t forget to run make test&#8221; when trying to start build_precommand.php. This operation was stopped and recorded in sandbox log as below.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
F: open_wr<br />
S: deny<br />
P: /usr/share/snmp/mibs/.index<br />
A: /usr/share/snmp/mibs/.index<br />
R: /usr/share/snmp/mibs/.index<br />
C: /var/tmp/portage/dev-lang/php-5.3.3_rc1/work/php-5.3.3RC1/sapi/cli/php -n -d open_basedir= -d output_buffering=0 -d memory_limit=-1 -d phar.readonly=0 -d safe_mode=0 /var/tmp/portage/dev-lang/php-5.3.3_rc1/work/php-5.3.3RC1/ext/phar/build_precommand.php<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>I&#8217;m not sure what the problem is or whether I did something wrong. Would you please give me a hand?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ole Markus</title>
		<link>http://barelysufficient.org/2010/06/gentoo-and-php-fpm/#comment-6</link>
		<dc:creator>Ole Markus</dc:creator>
		<pubDate>Fri, 25 Jun 2010 16:19:41 +0000</pubDate>
		<guid isPermaLink="false">http://olemarkus.org/?p=57#comment-6</guid>
		<description>Hi! Thanks for notifying me about the bug.
It has been fixed now.

But the issue you have been struggling with is really about unmasking PHP 5.3. I assume this is the problem since you also do not have PHP 5.3.2 that can also be found in portage.

I&#039;ll add a few lines in the post explaining how to do the unmasking and keywording.

Cheers!</description>
		<content:encoded><![CDATA[<p>Hi! Thanks for notifying me about the bug.<br />
It has been fixed now.</p>
<p>But the issue you have been struggling with is really about unmasking PHP 5.3. I assume this is the problem since you also do not have PHP 5.3.2 that can also be found in portage.</p>
<p>I&#8217;ll add a few lines in the post explaining how to do the unmasking and keywording.</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alfred</title>
		<link>http://barelysufficient.org/2010/06/gentoo-and-php-fpm/#comment-5</link>
		<dc:creator>alfred</dc:creator>
		<pubDate>Fri, 25 Jun 2010 15:15:36 +0000</pubDate>
		<guid isPermaLink="false">http://olemarkus.org/?p=57#comment-5</guid>
		<description>hi, thanks for your php-fpm ebuild.
this is what i saw when trying to emerge php

--- Invalid atom in /var/lib/layman/php/profiles/package.mask: =&gt;dev-lang/php-5.3.3_rc1

and only original php 5.2 is available. i can&#039;t go any further.
thanks again for your help</description>
		<content:encoded><![CDATA[<p>hi, thanks for your php-fpm ebuild.<br />
this is what i saw when trying to emerge php</p>
<p>&#8212; Invalid atom in /var/lib/layman/php/profiles/package.mask: =&gt;dev-lang/php-5.3.3_rc1</p>
<p>and only original php 5.2 is available. i can&#8217;t go any further.<br />
thanks again for your help</p>
]]></content:encoded>
	</item>
</channel>
</rss>

