<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 18 May 2013 13:24:30 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Kevin Schroeder: Why is FastCGI /w Nginx so much faster than Apache /w mod_php?]]></title>
      <guid>http://www.phpdeveloper.org/news/19008</guid>
      <link>http://www.phpdeveloper.org/news/19008</link>
      <description><![CDATA[<p>
In <a href="http://www.eschrade.com/page/why-is-fastcgi-w-nginx-so-much-faster-than-apache-w-mod_php/">this new post</a> to his site <i>Kevin Schroeder</i> takes a look at the performance difference between Apache+mod_php and Nginx+FastCGI and why the second is noticeably faster than the second.
</p>
<blockquote>
I was originally going to write a blog post about why NginX with FastCGI was faster than Apache with mod_php.  I had heard a while ago that NginX running PHP via FastCGI was faster than Apache with mod_php and have heard people swear up and down that it was true.  I did a quick test on it a while back and found some corresponding evidence. Today I wanted to examine it more in depth and see if I could get some good numbers on why this was the case.  The problem was that I couldn't. 
</blockquote>
<p>
He uses a "hello world" script as a baseline to do some testing and the <a href="http://httpd.apache.org/docs/2.2/programs/ab.html">ab</a> to run the numbers. His results show a pretty significant difference between the two setups and an "strace" on Apache showed a clear "winner" as to why it's slower (reading the .htaccess file). Once he turned this off, though, Apache jumped up and started performing better than Nginx. 
</p>
<blockquote>
This all makes sense.  mod_php has PHP embedded in Apache and so it should be faster.  If you're running only PHP on a web server then Apache still seems to be your best bet for performance.  And if you are seeing a significant performance difference then you should check if AllowOverride is turned on.  If it is, try moving that into httpd.conf and try again.
</blockquote>]]></description>
      <pubDate>Tue, 08 Jan 2013 12:43:23 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Pavel Shevaev's Blog: Make php-fpm execute arbitrary PHP scripts via socket]]></title>
      <guid>http://www.phpdeveloper.org/news/17045</guid>
      <link>http://www.phpdeveloper.org/news/17045</link>
      <description><![CDATA[<p>
<i>Pavel Shevaev</i> has a quick new post to his blog showing how to get PHP-FPM to <a href="http://efiquest.org/2011-10-22/55/">execute PHP scripts</a> via a socket request.
</p>
<blockquote>
We are using <a href="http://pecl.php.net/APC">APC cache</a> very heavily in our projects and during project deployment the cache must be flushed and warmed up. A common solution to warmup the APC cache is to fetch some special page via HTTP which does the job. The problem with this approach is that it's not reliable enough when PHP is served via several fastcgi back-ends.
</blockquote>
<p>
To solve the problem, he uses a <a href="https://github.com/pachanga/phpfpm">PHP-FPM module</a> to work with the FastCGI socket and execute any file (as permissions allow, of course). In his case, he uses it to "warm up" his APC cache for the user. A code snippet is provided as an example.
</p>
]]></description>
      <pubDate>Wed, 26 Oct 2011 11:19:23 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[ServerGrove Blog: How to setup multiple PHP versions on Apache]]></title>
      <guid>http://www.phpdeveloper.org/news/16758</guid>
      <link>http://www.phpdeveloper.org/news/16758</link>
      <description><![CDATA[<p>
On the ServerGrove blog today there's a new post from <i>Ishmael</i> about setting up <a href="http://blog.servergrove.com/2011/08/22/how-to-setup-multiple-php-versions-on-apache/">multiple versions of PHP on one Apache instance</a> with the help of FastCGI.
</p>
<blockquote>
There are several reasons you might need to run multiple versions of PHP on the same server. Maybe you have a PHP 5.2 application running on your server and you need to start working on another application based on a new framework like Symfony2 or Lithium? Perhaps you haver a client with a legacy site that runs PHP 5.2, or maybe you simply want to test some of the new functionality? This post is going to explain how to setup a server to run multiple versions of PHP.
</blockquote>
<p>
Normally, Apache can only be compiled with one version of PHP, but FastCGI gets around that by letting you define it in a configuration file instead. They also include support for defining the user the process runs as (suexec) that helps to make permissions issues lesser. Included are all of the command-line calls and config settings you'll need to make to get things set up.
</p>]]></description>
      <pubDate>Tue, 23 Aug 2011 11:07:38 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Swan's Blog: Reflecting on PHP-Microsoft Interoperability]]></title>
      <guid>http://www.phpdeveloper.org/news/15250</guid>
      <link>http://www.phpdeveloper.org/news/15250</link>
      <description><![CDATA[<p>
<i>Brian Swan</i> has <a href="http://blogs.msdn.com/b/brian_swan/archive/2010/10/07/reflecting-on-php-microsoft-interoperability.aspx">posted a new timeline</a> to his MSDN blog today about the road that Microsoft has traveled with PHP to get to where they are today.
</p>
<blockquote>
This morning I came across this article on PHPDeveloper.org: <a href="http://www.phpdeveloper.org/news/15242?utm_source=twitterfeed&utm_medium=twitter">Blast from the Past - One Year Ago in PHP</a>. That brief look into the past got me to thinking about what Microsoft has done lately toward PHP interoperability. (By "lately", I mean in the last few years.) And, I've been working on a presentation for <a href="http://www.microsoft.com/europe/teched/">TechEd in Berlin</a>  next month that will, in part, provide a brief overview of Microsoft's efforts toward PHP interoperability and support. So, I thought I'd share a bit of that summary here
</blockquote>
<p>
The timeline runs from back in 2006 when PHP and Windows/IIS/SQL Server just wasn't much of an option through the FastCGI and SQL Server driver years and finally rounding out with WinCache, PHP 5.3 improvements for Windows and the Azure SDK for PHP.
</p>]]></description>
      <pubDate>Fri, 08 Oct 2010 09:52:35 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Weier O'Phinney's Blog: Running mod_php and FastCGI side-by-side]]></title>
      <guid>http://www.phpdeveloper.org/news/14936</guid>
      <link>http://www.phpdeveloper.org/news/14936</link>
      <description><![CDATA[<p>
On his blog today <i>Matthew Weier O'Phinney</i> talks about how to <a href="http://weierophinney.net/matthew/archives/243-Running-mod_php-and-FastCGI-side-by-side.html">run mod_php and FastCGI side-by-side</a> on a <a href="http://www.zend.com/products/server/">Zend Server</a> instance.
</p>
<blockquote>
 I installed Zend Server some time ago, so I'm still on a PHP 5.2 mod_php binary. I have several PHP 5.3 binaries compiled and installed locally for running unit tests and sample scripts already -- so the question was how to keep my 5.2 mod_php running while simultaneously allowing the ability to run selected vhosts in 5.3? The answer can be summed up in one acronym: FastCGI. 
</blockquote>
<p>
He shows how to enable FastCGI in Apache (on Ubuntu), make a virtual host for your site and create a "cgi-bin" directory to contain the script(s) for your PHP versions as CGIs.
</p>]]></description>
      <pubDate>Tue, 10 Aug 2010 14:06:44 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Content with Style: Zend Framework with nginx and php-fastcgi]]></title>
      <guid>http://www.phpdeveloper.org/news/14909</guid>
      <link>http://www.phpdeveloper.org/news/14909</link>
      <description><![CDATA[<p>
On the Content with Style blog today there's <a href="http://www.contentwithstyle.co.uk/content/zend-framework-with-nginx">a new post</a> showing you how to get the Zend Framework up and running with the nginx web server running PHP as a FastCGI.
</p>
<blockquote>
Since I while I heard good things about nginx and wanted to use it for my Zend Framework MVC applications. I just got a Ubuntu server working after one of those days that seem to be a never ending Google search and debugging session, so I thought I'd share the outcome with you. 
</blockquote>
<p>
They show you how to install the needed packages, set up FastCGI and configure it to work with nginx and, of course, configure nginx to use the FastCGI. Included in the nginx config is a pointer to the Zend Framework's document root. Setting up the Zend Framework and creating an application isn't a part of the tutorial.
</p>]]></description>
      <pubDate>Thu, 05 Aug 2010 11:06:02 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ole Markus' Blog: Gentoo Linux and PHP-FPM]]></title>
      <guid>http://www.phpdeveloper.org/news/14721</guid>
      <link>http://www.phpdeveloper.org/news/14721</link>
      <description><![CDATA[<p>
Because of a recent addition to the the Gentoo PHP package (FPM support) they're looking for people to test it out and report back the results. To help, <i>Ole Markus</i> has <a href="http://olemarkus.org/2010/06/gentoo-and-php-fpm/">written up some instructions</a> on how to get it up and working on your system with <a href="http://nginx.net/">nginx</a>.
</p>
<blockquote>
PHP just added the FPM patch to their 5.3 branch, making it likely that PHP 5.3.3 will support the FPM SAPI. The FPM SAPI is an improved fcgi SAPI that allows for more advanced configuration than the original fcgi SAPI. One of the most useful features is process management, which makes it very useful for lightweight webservers, such as <a href="http://nginx.net/">nginx</a>, that does not handle process management of fcgi themselves.
</blockquote>
<p>
There's only a few commands you'll need to get this new package installed and working with your local nginx install with the help of the emerge and layman tools. He also includes the configuration change you'll need to make to the nginx config file to get it working as a FastCGI module.
</p>]]></description>
      <pubDate>Tue, 29 Jun 2010 13:53:39 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[SitePoint PHP Blog:  PHP with nginx is about to Become a Lot Easier]]></title>
      <guid>http://www.phpdeveloper.org/news/14454</guid>
      <link>http://www.phpdeveloper.org/news/14454</link>
      <description><![CDATA[<p>
On the SitePoint PHP blog today <i>Louis Simoneau</i> talks about something that can potentially make the PHP+ngnix combination <a href="http://www.sitepoint.com/blogs/2010/05/04/php-with-nginx-is-about-to-become-a-lot-easier/">even faster</a> - the inclusion of the <a href="http://php-fpm.org/">PHP-FPM</a> patch into PHP's core.
</p>
<blockquote>
You may be asking, "What is PHP-FPM, and why should I care?" PHP-FPM is a patch for PHP core that handles the starting, stopping, and restarting of FastCGI processes as needed. This is important because nginx can only interface with PHP via FastCGI, unlike Apache, which loads the whole PHP environment right into itself.
</blockquote>
<p>
Right now, the only downside to setting up the FastCGI interface with nginx takes a bit more work than the normal mod_php Apache handles so well. The PHP-FPM patch helps with some of this by making the FastCGI support directly embedded into PHP, removing the need for a lot of external setup.
</p>]]></description>
      <pubDate>Tue, 04 May 2010 08:49:54 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Abhinav Singh's Blog: Setting Nginx, PHP Fastcgi and XCache on a new Ubuntu]]></title>
      <guid>http://www.phpdeveloper.org/news/14438</guid>
      <link>http://www.phpdeveloper.org/news/14438</link>
      <description><![CDATA[<p>
<i>Abhinav Singh</i> has <a href="http://abhinavsingh.com/blog/2010/04/setting-nginx-php-fastcgi-and-xcache-on-a-new-ubuntu/">a new post</a> to his blog today showing how to get Nginx, PHP (FastCGI) and XCache all up and running on an Ubuntu installation. He made the switch to this platform after he made the change in his choice of web servers:
</p>
<blockquote>
Recently, because of a mandatory VPS move I had an opportunity to migrate all my sites from apache to nginx. My old box was in a messy state and setting up a new box from scratch was always going to be fun. Here in this post, I will walk you through all the steps that helped me migrate seamlessly. Specially, how did I setup the new box ensuring zero downtime on the sites.
</blockquote>
<p>
One of the keys to his transition was to have no downtime in the switch between the old and new systems (managing local vs public DNS let him test). The software is all installed via the apt-get package manager and the changes you'll need to make to the configuration files are all included, making the install as easy on you as possible. 
</p>]]></description>
      <pubDate>Fri, 30 Apr 2010 08:41:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ruslan Yakushev's Blog: PHP on IIS: MonitorChangesTo setting in FastCGI]]></title>
      <guid>http://www.phpdeveloper.org/news/14277</guid>
      <link>http://www.phpdeveloper.org/news/14277</link>
      <description><![CDATA[<p>
Ever frustrated by the fact that the php.ini changes to take effect in your FastCGI setup you need to either flush the current instances or just wait until they die off. You might want to take a look at the latest post from <i>Ruslan Yakushev</i> about the <a href="http://ruslany.net/2010/03/php-on-iis-monitorchangesto-setting-in-fastcgi/">MonitorChangesTo setting</a> that's recently been introduced.
</p>
<blockquote>
The latest releases of the <a href="http://ruslany.net/2010/01/fastcgi-extension-1-5-for-iis-5-1-and-iis-6-0-rtw/">FastCGI Extensoin 1.5</a> and <a href="http://ruslany.net/2010/03/important-update-for-iis-7-0-fastcgi-module/">FastCGI update for IIS 7.0</a> have a new configuration setting monitorChangesTo  that takes an absolute path to a file that FastCGI will monitor for changes. In case of PHP this means that you can set monitorChangesTo  to a path to php.ini file, so that any time it is modified the FastCGI module will restart the php-cgi.exe to pick up the configuration changes.
</blockquote>
<p>
He includes a few examples of how to use it with different versions of IIS - 5.1/6.0, 7.0 and the latest - 7.5. Configuration settings and screenshots are included as needed.
</p>]]></description>
      <pubDate>Wed, 31 Mar 2010 12:02:10 -0500</pubDate>
    </item>
  </channel>
</rss>
