<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PHP vs .Net &#187; LAMP</title>
	<atom:link href="http://www.phpvs.net/category/lamp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpvs.net</link>
	<description>ASP.Net and PHP go head to head</description>
	<lastBuildDate>Sat, 24 Dec 2011 18:20:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Fixing &quot;Error 320 (net::ERR_INVALID_RESPONSE): Unknown error&quot; with Google Chrome</title>
		<link>http://www.phpvs.net/2009/03/26/fixing-error-320-neterr_invalid_response-unknown-error-with-google-chrome/</link>
		<comments>http://www.phpvs.net/2009/03/26/fixing-error-320-neterr_invalid_response-unknown-error-with-google-chrome/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 16:29:11 +0000</pubDate>
		<dc:creator>blake</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[LAMP]]></category>

		<guid isPermaLink="false">http://www.phpvs.net/?p=75</guid>
		<description><![CDATA[Without starting a browser flamewar, I&#039;ll just say that Google Chrome is a nice idea, but I won&#039;t be switching any time soon. As software evolves, competitors always appear, distilling out the good parts of existing products to create their take on something, and make it better. Google has done that with Chrome; it&#039;s light [...]]]></description>
			<content:encoded><![CDATA[<p>Without starting a browser flamewar, I&#039;ll just say that Google Chrome is a nice idea, but I won&#039;t be switching any time soon.  As software evolves, competitors always appear, distilling out the good parts of existing products to create their take on something, and make it better.  Google has done that with Chrome; it&#039;s light and fast and responsive.  Unfortunately, it&#039;s still a bit green on the battlefield.</p>
<p>Take this particular error for instance:  <strong>Error 320 (net::ERR_INVALID_RESPONSE): Unknown error</strong>.  Have you seen this?  I was emailed the other day by someone who was browsing a site I am responsible for that &#034;the site is down!  when will it be fixed?!&#034;.  Seeing that it was fine in all my &#034;normal&#034; test browsers (Firefox, Safari, Opera, IE6, IE7), I gritted my teeth against the inevitable email conversation to follow that would be necessary to get even the slightest helpful detail out of this person.</p>
<p>Eventually, it came out that this person was using Chrome, and sure enough, I immediately got the same error when I fired it up.  Not only was this particular site down, but every site on the server gave the same response.  Chrome would not load a single page from any site, complaining only that &#034;Error 320 (net::ERR_INVALID_RESPONSE): Unknown error&#034; was upon it, like some kind of HTTP Götterdämmerung.</p>
<p>Googling wasn&#039;t immediately helpful; mostly forum threads complaining about the same problem, but no real fixes were presented.  Amusingly, it seemed that at one time a lot of Chrome users couldn&#039;t use Chrome to access Gmail because of this error.  However, I managed to find <a href="http://code.google.com/p/chromium/issues/detail?id=138">a thread on Google code</a>  which turned out to be somewhat enlightening.  The problem appears to be in the way that Chrome handles HTTP headers, where certain forms of some HTTP headers will trigger the error, causing Chrome to pack it in.  To be fair, it&#039;s really a Windows/Microsoft problem, as the bug is apparently in the underlying <a href="http://msdn.microsoft.com/en-us/library/aa384273(VS.85).aspx">WinHTTP</a> service, which Chrome utilizes.</p>
<p>The good news is that the Google devs have apparently solved the problem by switching away from WinHTTP, and it has apparently been fixed in the development branches already.  Unfortunately, that&#039;s only good news if your average user has downloaded the development version of Chrome, and not if you&#039;re a website owner and someone is complaining about your site.</p>
<p>Armed with the knowledge that it was a header problem, without doing any further research I went ahead and upgraded Apache.  The server in question had been running version 2.2.6, and I upgraded to Apache 2.2.11.</p>
<p>I was extremely pleased to discover that this <strong><em>actually fixed the problem</em></strong>.  Chrome immediately worked just fine, and I immediately cracked open a self-congratulatory beer.</p>
<p>Without examining the Apache changelogs to discover what might have fixed it, I&#039;m happy to just give kudos to those people that deal with that level of the web, and were clever enough to change/fix whichever header it was (I have a hunch it was a mod_rewrite issue, but I&#039;m talking out my posterior on that one).  That being said, Chrome (and WinHTTP) should be able to handle invalid HTTP headers, especially if it&#039;s an unimportant one and the page content can be salvaged.  It&#039;s the web&#8230; things get garbled and junky all the time (have you ever seen a MySpace page?)</p>
<p>Unfortunately, the end result of this is that now I have <strong>yet another browser</strong> that I have to check things with when doing web development.</p>
<p>Just what I wanted Chrome to be.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpvs.net/2009/03/26/fixing-error-320-neterr_invalid_response-unknown-error-with-google-chrome/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Build a CentOS LAMP server</title>
		<link>http://www.phpvs.net/2008/03/09/build-a-centos-lamp-server/</link>
		<comments>http://www.phpvs.net/2008/03/09/build-a-centos-lamp-server/#comments</comments>
		<pubDate>Sun, 09 Mar 2008 21:45:14 +0000</pubDate>
		<dc:creator>blake</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Optimization]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.phpvs.net/2008/03/09/build-a-centos-lamp-server/</guid>
		<description><![CDATA[I finally finished re-building a development CentOS LAMP server. More importantly, and the primary purpose of the whole exercise, is that I finished my guide to building a CentOS LAMP server. I am happy to now post said guide on this blog (under Articles), for everyone to read and abuse as they please! So here [...]]]></description>
			<content:encoded><![CDATA[<p>I finally finished re-building a development CentOS LAMP server.  More importantly, and the primary purpose of the whole exercise, is that I finished my <i>guide</i> to building a CentOS LAMP server. I am happy to now post said guide on this blog (under Articles), for everyone to read and abuse as they please!</p>
<p>So here you go&#8230; may I present Blake&#039;s CentOS LAMP Server Guide, <a href="http://www.phpvs.net/articles/blakes-centos-lamp-server-guide-single-page/">single-page edition</a>, and the perhaps friendlier <a href="http://www.phpvs.net/articles/blakes-centos-lamp-server-guide/">multi-page edition</a>.</p>
<p>The guide covers the basics of building up a CentOS box to use as a remotely-administered LAMP server, including installation and configuration of PHP, Apache and MySQL.  Other goodies are in there too, like mail server setup with Postfix/Postgrey/Dovecot.  Keep in mind this guide was written from my point of view, and contains the ways that <em>I</em> like to do things.  I keep my basic LAMP stuff pretty slim for maximum performance, so you&#039;ll see some installations from source in there to help keep things tight.</p>
<p>Let me know if the guide is useful!  I&#039;m hoping to get Google to pick it up and get some comments going on the various ways people set up their own LAMP boxes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpvs.net/2008/03/09/build-a-centos-lamp-server/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

