<?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: FastCGI with a PHP APC Opcode Cache</title>
	<atom:link href="http://www.brandonturner.net/blog/2009/07/fastcgi_with_php_opcode_cache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brandonturner.net/blog/2009/07/fastcgi_with_php_opcode_cache/</link>
	<description>Random thoughts on web applications, software development and Linux</description>
	<lastBuildDate>Sun, 05 Sep 2010 05:30:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Brandon</title>
		<link>http://www.brandonturner.net/blog/2009/07/fastcgi_with_php_opcode_cache/comment-page-1/#comment-7190</link>
		<dc:creator>Brandon</dc:creator>
		<pubDate>Fri, 03 Sep 2010 14:41:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.brandonturner.net/blog/?p=320#comment-7190</guid>
		<description>&lt;a href=&quot;#comment-7189&quot; rel=&quot;nofollow&quot;&gt;@Christopher&lt;/a&gt; 
I haven&#039;t seen the error messages you&#039;re seeing, but you might have a look at &lt;a href=&quot;http://pecl.php.net/bugs/bug.php?id=16966&quot; rel=&quot;nofollow&quot;&gt;pecl bug #16966&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p><a href="#comment-7189" rel="nofollow">@Christopher</a><br />
I haven&#8217;t seen the error messages you&#8217;re seeing, but you might have a look at <a href="http://pecl.php.net/bugs/bug.php?id=16966" rel="nofollow">pecl bug #16966</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher</title>
		<link>http://www.brandonturner.net/blog/2009/07/fastcgi_with_php_opcode_cache/comment-page-1/#comment-7189</link>
		<dc:creator>Christopher</dc:creator>
		<pubDate>Fri, 03 Sep 2010 13:20:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.brandonturner.net/blog/?p=320#comment-7189</guid>
		<description>Brandom, thanks for this detailed article. I&#039;m wondering if you or anyone has experienced errors with apc? I&#039;m currently getting the following almost continuously when apc is enabled: unable to allocate memory for pool</description>
		<content:encoded><![CDATA[<p>Brandom, thanks for this detailed article. I&#8217;m wondering if you or anyone has experienced errors with apc? I&#8217;m currently getting the following almost continuously when apc is enabled: unable to allocate memory for pool</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: george</title>
		<link>http://www.brandonturner.net/blog/2009/07/fastcgi_with_php_opcode_cache/comment-page-1/#comment-7186</link>
		<dc:creator>george</dc:creator>
		<pubDate>Fri, 27 Aug 2010 12:30:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.brandonturner.net/blog/?p=320#comment-7186</guid>
		<description>Thanks Brandon this is a brilliant article so clear and concise and easy to understand!</description>
		<content:encoded><![CDATA[<p>Thanks Brandon this is a brilliant article so clear and concise and easy to understand!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://www.brandonturner.net/blog/2009/07/fastcgi_with_php_opcode_cache/comment-page-1/#comment-7181</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Wed, 28 Jul 2010 18:12:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.brandonturner.net/blog/?p=320#comment-7181</guid>
		<description>Thanks a lot for this tutorial !

I&#039;ve lost some hours trying to figure why my apc cache was restarted every request (apc.php show me uptime 0 and the start time was always the current time.)

It was because I wrote &quot;FastCgiConfig ...&quot; line after the line &quot;FastCgiWrapper on&quot; in the config ...

Perhaps this tip will help some people ;)</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this tutorial !</p>
<p>I&#8217;ve lost some hours trying to figure why my apc cache was restarted every request (apc.php show me uptime 0 and the start time was always the current time.)</p>
<p>It was because I wrote &#8220;FastCgiConfig &#8230;&#8221; line after the line &#8220;FastCgiWrapper on&#8221; in the config &#8230;</p>
<p>Perhaps this tip will help some people <img src='http://www.brandonturner.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sina</title>
		<link>http://www.brandonturner.net/blog/2009/07/fastcgi_with_php_opcode_cache/comment-page-1/#comment-7179</link>
		<dc:creator>sina</dc:creator>
		<pubDate>Mon, 26 Jul 2010 14:46:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.brandonturner.net/blog/?p=320#comment-7179</guid>
		<description>Excellent article Brandon, Thanks.
I can wait to read your next article about benchmarks</description>
		<content:encoded><![CDATA[<p>Excellent article Brandon, Thanks.<br />
I can wait to read your next article about benchmarks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon</title>
		<link>http://www.brandonturner.net/blog/2009/07/fastcgi_with_php_opcode_cache/comment-page-1/#comment-7177</link>
		<dc:creator>Brandon</dc:creator>
		<pubDate>Mon, 19 Jul 2010 18:29:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.brandonturner.net/blog/?p=320#comment-7177</guid>
		<description>This is still the method I use.  On some boxes I run the fastcgi php processes externally via a process watcher such as daemontools, but it&#039;s still the same general idea.

Typical shared hosting providers oversell which would prohibit them from dedicating the ram needed to support opcode caches per user.  I&#039;m sure some companies are doing it, but I can&#039;t imagine it will ever be the &quot;norm&quot;.</description>
		<content:encoded><![CDATA[<p>This is still the method I use.  On some boxes I run the fastcgi php processes externally via a process watcher such as daemontools, but it&#8217;s still the same general idea.</p>
<p>Typical shared hosting providers oversell which would prohibit them from dedicating the ram needed to support opcode caches per user.  I&#8217;m sure some companies are doing it, but I can&#8217;t imagine it will ever be the &#8220;norm&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joshua</title>
		<link>http://www.brandonturner.net/blog/2009/07/fastcgi_with_php_opcode_cache/comment-page-1/#comment-7176</link>
		<dc:creator>joshua</dc:creator>
		<pubDate>Mon, 19 Jul 2010 18:20:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.brandonturner.net/blog/?p=320#comment-7176</guid>
		<description>&lt;a href=&quot;#comment-6070&quot; rel=&quot;nofollow&quot;&gt;@Brandon&lt;/a&gt; 
I know this post was written a while ago.  Do you have any updates to add or is this still the defacto method?

Seems in 2010 this should have been figured out without jumping thru hoops.  A shared hosting enviro should be secure and utilize a opcode. Hard to believe there is not an out of the box setup.</description>
		<content:encoded><![CDATA[<p><a href="#comment-6070" rel="nofollow">@Brandon</a><br />
I know this post was written a while ago.  Do you have any updates to add or is this still the defacto method?</p>
<p>Seems in 2010 this should have been figured out without jumping thru hoops.  A shared hosting enviro should be secure and utilize a opcode. Hard to believe there is not an out of the box setup.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: João Santana</title>
		<link>http://www.brandonturner.net/blog/2009/07/fastcgi_with_php_opcode_cache/comment-page-1/#comment-7173</link>
		<dc:creator>João Santana</dc:creator>
		<pubDate>Tue, 29 Jun 2010 02:31:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.brandonturner.net/blog/?p=320#comment-7173</guid>
		<description>Thanks Brandon, was needing this for a small ubuntu server and it&#039;s working as it should.

It&#039;s worth to mention the fact that I learnt the hard-way (meaning pulling my hair out for a couple of hours) that the ScriptAlias directive on apache .conf had to be commented out in case it exists or else I was having a 404 error to an incorrect cgi path when i clicked on any .php file.

Thx again.</description>
		<content:encoded><![CDATA[<p>Thanks Brandon, was needing this for a small ubuntu server and it&#8217;s working as it should.</p>
<p>It&#8217;s worth to mention the fact that I learnt the hard-way (meaning pulling my hair out for a couple of hours) that the ScriptAlias directive on apache .conf had to be commented out in case it exists or else I was having a 404 error to an incorrect cgi path when i clicked on any .php file.</p>
<p>Thx again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Williams</title>
		<link>http://www.brandonturner.net/blog/2009/07/fastcgi_with_php_opcode_cache/comment-page-1/#comment-7172</link>
		<dc:creator>Jason Williams</dc:creator>
		<pubDate>Sun, 20 Jun 2010 22:04:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.brandonturner.net/blog/?p=320#comment-7172</guid>
		<description>Hi Brandon,

Just wanted to echo the thanks of others here as I now have APC+FastCGI setup as you described, and it&#039;s working a treat.

I had a few gotcha&#039;s to contend with along the way as is only natural with different flavours of Linux. Now working great under Ubuntu 10.04 LTS. 

Thanks again.</description>
		<content:encoded><![CDATA[<p>Hi Brandon,</p>
<p>Just wanted to echo the thanks of others here as I now have APC+FastCGI setup as you described, and it&#8217;s working a treat.</p>
<p>I had a few gotcha&#8217;s to contend with along the way as is only natural with different flavours of Linux. Now working great under Ubuntu 10.04 LTS. </p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon</title>
		<link>http://www.brandonturner.net/blog/2009/07/fastcgi_with_php_opcode_cache/comment-page-1/#comment-6070</link>
		<dc:creator>Brandon</dc:creator>
		<pubDate>Sat, 06 Feb 2010 17:31:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.brandonturner.net/blog/?p=320#comment-6070</guid>
		<description>&lt;a href=&quot;#comment-6064&quot; rel=&quot;nofollow&quot;&gt;@John&lt;/a&gt; 
Hmm.  Can you give an example of a file you are &lt;em&gt;executing&lt;/em&gt; with a different owner?

In this post I describe setting up a wrapper around &lt;code&gt;php-cgi&lt;/code&gt;.  This wrapper is executed by Apache&#039;s suEXEC.  I describe the file ownership permissions for this wrapper, and if I deviate from these I get a 500 error response.

Apache is configured to use the &lt;code&gt;php-cgi&lt;/code&gt; wrapper to for all PHP files.  In this configuration the wrapper is &lt;em&gt;executed&lt;/em&gt; by suEXEC and the actual PHP file is &lt;em&gt;read&lt;/em&gt; by &lt;code&gt;php-cgi&lt;/code&gt;.  This means that if the PHP file is readable by the suEXEC user it will execute, regardless of owner.  If this isn&#039;t what you want, set the unix permissions of each PHP file accordingly.

You mention that you can &lt;em&gt;execute&lt;/em&gt; files with a different owner/group then what you define in SuexecUserGroup.  I&#039;ve tested this and cannot get this behavior on my system - which is why I ask, what files are you trying to &lt;em&gt;execute&lt;/em&gt;?</description>
		<content:encoded><![CDATA[<p><a href="#comment-6064" rel="nofollow">@John</a><br />
Hmm.  Can you give an example of a file you are <em>executing</em> with a different owner?</p>
<p>In this post I describe setting up a wrapper around <code>php-cgi</code>.  This wrapper is executed by Apache&#8217;s suEXEC.  I describe the file ownership permissions for this wrapper, and if I deviate from these I get a 500 error response.</p>
<p>Apache is configured to use the <code>php-cgi</code> wrapper to for all PHP files.  In this configuration the wrapper is <em>executed</em> by suEXEC and the actual PHP file is <em>read</em> by <code>php-cgi</code>.  This means that if the PHP file is readable by the suEXEC user it will execute, regardless of owner.  If this isn&#8217;t what you want, set the unix permissions of each PHP file accordingly.</p>
<p>You mention that you can <em>execute</em> files with a different owner/group then what you define in SuexecUserGroup.  I&#8217;ve tested this and cannot get this behavior on my system &#8211; which is why I ask, what files are you trying to <em>execute</em>?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
