<?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>Mon, 21 May 2012 10:22:50 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHP.net: PHP 5.4.3 and PHP 5.3.13 Released!]]></title>
      <guid>http://www.phpdeveloper.org/news/17932</guid>
      <link>http://www.phpdeveloper.org/news/17932</link>
      <description><![CDATA[<p>
The PHP project has released another update to both the 5.3.x and 5.4 revisions of the language <a href="http://www.php.net/archive/2012.php#id2012-05-08-1">correcting the bug</a> that was found dealing with a flaw in CGI-based setups.
</p>
<blockquote>
The PHP development team would like to announce the immediate availability of PHP 5.4.3 and PHP 5.3.13. All users are encouraged to upgrade to PHP 5.4.3 or PHP 5.3.13 The releases complete a fix for a <a href="http://www.php.net/archive/2012.php#id2012-05-03-1">vulnerability</a> in CGI-based setups (CVE-2012-2311). Note: mod_php and php-fpm are not vulnerable to this attack. PHP 5.4.3 fixes a buffer overflow vulnerability in the <a href="http://php.net/manual/function.apache-request-headers.php">apache_request_headers()</a> (CVE-2012-2329). The PHP 5.3 series is not vulnerable to this issue.
</blockquote>
<p>
Users are encouraged to upgrade their applications, especially those using CGI-based setups. You can find the latest source on <a href="http://www.php.net/downloads.php">the downloads page</a> and the Windows binaries on <a href="http://windows.php.net/download/">windows.php.net</a>.
</p>]]></description>
      <pubDate>Wed, 09 May 2012 07:10:36 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP.net: PHP 5.3.12 and 5.4.2 and the CGI flaw (CVE-2012-1823)]]></title>
      <guid>http://www.phpdeveloper.org/news/17915</guid>
      <link>http://www.phpdeveloper.org/news/17915</link>
      <description><![CDATA[The PHP.net site as new post with some supplemental information for those users of the PHP CGI that might be effected by the recently announced bug, the reason for the  <a href="http://phpdeveloper.org/news/17907">most recent release</a>. Unfortunately, this patch only fixes some of the cases of the problem, so they've <a href="http://www.php.net/index.php#id2012-05-06-1">amended their instructions</a> to included a more effective mod_rewrite rule to help protect your applications.
</p>
<blockquote>
PHP 5.3.12/5.4.2 do not fix all variations of the CGI issues described in CVE-2012-1823. It has also come to our attention that some sites use an insecure cgiwrapper script to run PHP. These scripts will use $* instead of "$@" to pass parameters to php-cgi which causes a number of issues. Again, people using mod_php or php-fpm are not affected.
</blockquote>
<p>
The rewrite rule is there in the post, ready for copy and pasting into your config. Even if you're running the latest PHP 5.3.12 and 5.4.2., be sure to use this rule as a stop-gap measure for now. Another release is planned for tomorrow to fully correct the CGI flaw.
</p>]]></description>
      <pubDate>Mon, 07 May 2012 09:03:59 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP-Security.net: New PHP-CGI Exploit (CVE-2012-1823)]]></title>
      <guid>http://www.phpdeveloper.org/news/17908</guid>
      <link>http://www.phpdeveloper.org/news/17908</link>
      <description><![CDATA[<p>
The PHP-Security.net site has two posts related to the recently discovered bug in PHP (hence the <a href="http://phpdeveloper.org/news/17907">new versions</a>) related to the CGI handling in certain server configurations. 
</p>
<p>
In <a href="http://www.php-security.net/archives/9-New-PHP-CGI-exploit-CVE-2012-1823,-PoC-exploit.html">the first</a> they detail more of what the bug is, how it could be exploited and link to the <a href="http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/">original advisory</a> for the problem. Also included are more details on the issue, including sample avenues of attack.
</p>
<p>
In the <a href="http://www.php-security.net/archives/11-Mitigation-for-CVE-2012-1823-CVE-2012-2311.html">second post</a> they look at the recent PHP release and note that it does not completely rid the language of the problem. They point out that the Rewrite rule that's included in their post (not the one on PHP.net) should be used to prevent this issue from effecting your installations.
</p>]]></description>
      <pubDate>Fri, 04 May 2012 08:24:44 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP.net: PHP 5.3.12 and PHP 5.4.2 Released!]]></title>
      <guid>http://www.phpdeveloper.org/news/17907</guid>
      <link>http://www.phpdeveloper.org/news/17907</link>
      <description><![CDATA[<p>
The PHP project has <a href="http://www.php.net/archive/2012.php#id2012-05-03-1">officially released the latest versions</a> in both the 5.3.x and 5.4.x series in response to a bug that was found in the CGI setup of certain server+PHP configurations.
</p>
<blockquote>
<p>
There is a vulnerability in certain CGI-based setups (Apache+mod_php and nginx+php-fpm are not affected) that has gone unnoticed for at least 8 years. Section 7 of the CGI spec states: 'Some systems support a method for supplying a [sic] array of strings to the CGI script. This is only used in the case of an `indexed' query. This is identified by a "GET" or "HEAD" HTTP request with a URL search string not containing any unencoded "=" characters.'
</p>
<p>
A large number of sites run PHP as either an Apache module through mod_php or using php-fpm under nginx. Neither of these setups are vulnerable to this. Straight shebang-style CGI also does not appear to be vulnerable. If you are using Apache mod_cgi to run PHP you may be vulnerable. To see if you are, just add ?-s to the end of any of your URLs. If you see your source code, you are vulnerable. If your site renders normally, you are not.
</p>
</blockquote>
<p>
You can download this latest version from <a href="http://www.php.net/downloads.php">the downloads page</a> for the source releases or <a href="http://windows.php.net">windows.php.net</a> for the Windows binaries. You can look at <a href="http://www.php.net/ChangeLog-5.php#5.4.2">the Changelog</a> if you'd like more details on the update.
</p>]]></description>
      <pubDate>Fri, 04 May 2012 07:19:08 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Stuart Herbert's Blog: Making IIS Practical In Production For PHP ]]></title>
      <guid>http://www.phpdeveloper.org/news/11594</guid>
      <link>http://www.phpdeveloper.org/news/11594</link>
      <description><![CDATA[<p>
<i>Stuart Herbert</i>, prompted by <a href="http://www.phpdeveloper.org/news/11591">this post</a> from <i>Derick Rethans</i> uses <a href="http://blog.stuartherbert.com/php/2008/12/17/making-iis-practical-in-production-for-php/">this new post</a> to his blog to point out something that didn't seem to be mentioned and has always been a pet peeve of his when running PHP on IIS - controlling the FastCGI processes so they don't take over the machine.
</p>
<blockquote>
Running PHP via CGI and FastCGI means that IIS has to do the Windows equivalent of fork()ing off PHP processes to do the actual PHP bit.  If your box has too many PHP processes running, the box will start to swap.  Once a webserver starts swapping, you've no chance in hell of keeping up with all the incoming requests, and your websites on that particular webserver become unavailable in a matter of moments.
</blockquote>
<p>
The problem seems to have been corrected in the most recent IIS release, though and correct directions <a href="http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-70/">can be found here</a>. Older versions of the web server are out of luck, unfortunately.
</p>]]></description>
      <pubDate>Thu, 18 Dec 2008 10:24:24 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Dhiraj Patra's Blog: Running PHP Scripts with Cron]]></title>
      <guid>http://www.phpdeveloper.org/news/10761</guid>
      <link>http://www.phpdeveloper.org/news/10761</link>
      <description><![CDATA[<p>
<i>Dhiraj Patra</i> has <a href="http://dhirajpatra.blogspot.com/2008/08/running-php-scripts-with-cron.html">posted a tutorial</a> to his "LAM-PHP" blog today looking at a different-than-usual way for running PHP scripts - in the cron.
</p>
<blockquote>
Lots of programmers like PHP for its ability to code and develop web applications fast. Code-debugging is a lot easier than with PERL or C. However, there is one thing a lot of developers are puzzled about, "How to run PHP Scripts with crontab?"
</blockquote>
<p>
He explains how cron can be used effectively to replace including a backend script into another file (bad practice) and how to get started with PHP and cron. He includes how to find if you're using a CGI or Apache version of PHP and how to locate the binary. He takes this knowledge and shows how to apply it and put a sample script into the cron file. You can check out sites like <a href="http://www.adminschoice.com/docs/crontab.htm">this</a> or <a href="http://www.unixgeeks.org/security/newbie/unix/cron-1.html">this</a> for more information on cron itself.
</p>]]></description>
      <pubDate>Tue, 05 Aug 2008 08:45:03 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ian Bicking's Blog: What PHP Deployment Gets Right]]></title>
      <guid>http://www.phpdeveloper.org/news/9410</guid>
      <link>http://www.phpdeveloper.org/news/9410</link>
      <description><![CDATA[<p>
On his blog, <i>Ian Bicking</i> has <a href="http://blog.ianbicking.org/2008/01/12/what-php-deployment-gets-right/">posted some of his thoughts</a> on a positive look at PHP - what he thinks PHP has done right.
</p>
<blockquote>
With the recent talk on the blogosphere about <a href="http://blog.dreamhost.com/2008/01/07/how-ruby-on-rails-could-be-much-better/">deployment</a> (and <a href="http://www.b-list.org/weblog/2008/jan/10/hosts/">for Django</a>, and lots of other posts too), people are thinking about <a href="http://comments.deasil.com/2008/01/11/lessons-to-be-learned-from-php/">PHP</a> a bit more analytically. I think people mostly get it wrong.
</blockquote>
<p>
He <a href="http://blog.ianbicking.org/2008/01/12/what-php-deployment-gets-right/">points out</a> that PHP, in essence, is a CGI-style execution and, in being so, makes it more flexible. Both sides, web and command line, can work with the language equally well. He also mentions the developer/administrator split he sees in PHP's structure and how the language facilitates it.
</p>]]></description>
      <pubDate>Sat, 12 Jan 2008 19:13:09 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Stuart Herbert's Blog: Using suexec To Secure A Shared Server]]></title>
      <guid>http://www.phpdeveloper.org/news/9267</guid>
      <link>http://www.phpdeveloper.org/news/9267</link>
      <description><![CDATA[<p>
One of the more frustrating things about working on a shared server is trying to keep it secure while still giving users some flexibility in their environments. <i>Stuart Herbert</i> has continued his series looking at combating issues like this with <A href="http://blog.stuartherbert.com/php/2007/12/18/using-suexec-to-secure-a-shared-server/">this look</a> at installing suexec to secure a shared server.
</p>
<blockquote>
<a href="http://blog.stuartherbert.com/php/2007/11/21/the-challenge-with-securing-shared-hosting/">The challenge with securing a shared hosting server</a> is how to secure the website from attack both from the outside and from the inside. PHP has built-in features to help, but ultimately it's the wrong place to address the problem.
</blockquote>
<p>
<a href="http://blog.stuartherbert.com/php/2007/12/18/using-suexec-to-secure-a-shared-server/">His guide</a> steps through the entire process - getting the software, configuring Apache (with the PHP/CGI installation) and configuring suexec, both for the default install and then for the shared server settings. There's even a few brief benchmarks showing the speed of execution for scripts with and without the suexec environment. 
</p>]]></description>
      <pubDate>Tue, 18 Dec 2007 12:09:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Nessa's Blog: Using an .htaccess with PHP Compiled as CGI]]></title>
      <guid>http://www.phpdeveloper.org/news/9201</guid>
      <link>http://www.phpdeveloper.org/news/9201</link>
      <description><![CDATA[<p>
<i>Nessa</i> has <a href="http://www.v-nessa.net/2007/12/06/using-an-htaccess-with-php-compiled-as-cgi">posted another new tutorial</a> based around her experiences with <a href="http://www.suphp.org/Home.html">suPHP</a>. This time it deals with using an .htaccess file for changing the settings of the PHP installation.
</p>
<blockquote>
First of all, if you'd rather use the .htaccess than the php.ini capabilities of a phpsuexec environment, then shame on you. But, we have some customers who are terrified of php.ini and would rather use the .htaccess. So what? Ok, well there is a workaround.
</blockquote>
<p>
The connecting piece is the <a href="http://pecl.php.net/htscanner">htscanner extension</a> - she includes installation instructions and how to include it into your PHP installation (as well as how to set the PHP values in the .htaccess).
</p>]]></description>
      <pubDate>Fri, 07 Dec 2007 16:18:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: FastCGI and PHP: A User's Story]]></title>
      <guid>http://www.phpdeveloper.org/news/9046</guid>
      <link>http://www.phpdeveloper.org/news/9046</link>
      <description><![CDATA[<p>
On the Zend Developer Zone today there's a <a href="http://devzone.zend.com/article/2710-FastCGI-and-PHP-A-Users-Story">new article</a> by <i>Elizabeth Smith</i> about one of the latest offerings from Microsoft to the online community - <a href="http://www.iis.net/downloads/default.aspx?tabid=34&g=6&i=1521">FastCGI for IIS6</a>.
</p>
<blockquote>
What is FastCGI? I could go on for pages about the technical background, and Microsoft already has some great documentation on the subject, however I'll put it in layman's terms for those who aren't Computer Science majors. [...] CGI is a method that a web server can use for tools like PHP, Perl, or any other language that support it. CGI spawns a new process for each request, which can be really slow. FastCGI speeds this up with a very simple solution '" instead of creating a brand new process for each request, it creates a "pool" of processes and reuses them.
</blockquote>
<p>
She talks about <a href="http://devzone.zend.com/article/2710-FastCGI-and-PHP-A-Users-Story">her usage</a> of PHP on Windows platforms in her work, about a move her company made from Apache to IIS and how much the FastCGI functionality helped. She also briefly explains how to get IIS and FastCGI to work together to make the PHP functionality happen.
</p>]]></description>
      <pubDate>Wed, 14 Nov 2007 17:47:00 -0600</pubDate>
    </item>
  </channel>
</rss>

