{"id":389,"date":"2007-03-12T16:50:17","date_gmt":"2007-03-12T16:50:17","guid":{"rendered":"http:\/\/neosmart.net\/blog\/2007\/no-more-downtime\/"},"modified":"2013-08-26T18:14:59","modified_gmt":"2013-08-26T23:14:59","slug":"no-more-downtime","status":"publish","type":"post","link":"https:\/\/neosmart.net\/blog\/no-more-downtime\/","title":{"rendered":"No More Downtime!"},"content":{"rendered":"<p>It seems that every time we get on Slashdot (or Digg for that matter), we go down. It doesn&#8217;t make a difference just how well prepared we are, what kind of hosting we&#8217;re using, what the application being Slashdotted is, etc. It&#8217;s the unwritten law at NST. But we hope this&#8217;s the last time we ever experience downtime for a while.<sup id=\"rf1-389\"><a href=\"#fn1-389\" title=\"Currently, NeoSmart Technologies is running off of a dedicated host (from LunarPages) with eAccelerator, MySQL, WP Cache, and some more optimization goodiness.\" rel=\"footnote\">1<\/a><\/sup>\n<\/p>\n<p>Why? We&#8217;ve left PHP. Well, not exactly. It seems that PHP doesn&#8217;t give a damn about Windows users. PHP has repeatedly stated that &#8220;we&#8217;re aware of [&#8230;.] serious stability issues on Windows&#8230;&#8221; But they&#8217;ve done nothing about it for almost a year now. Their advice is to abandon (their own) PHP ISAPI connector and instead fallback to the ages-old and incredibly slow PHP CGI solution.\n<\/p>\n<p><!--more--><\/p>\n<p>A couple of years ago, a more efficient &#8220;version&#8221; of CGI, aptly dubbed &#8220;<a href=\"http:\/\/www.fastcgi.com\/drupal\/\" rel=\"follow\">FastCGI<\/a>,&#8221; was invented. Theoretically, FastCGI retains the stability and reliance of the old CGI method, but is implemented via its own (actually working) ISAPI\/NSAPI extension and incorporates some changes in the lifeline of a binary. But in practice, the original <a href=\"http:\/\/www.caraveo.com\/fastcgi\/\" rel=\"follow\">FastCGI for IIS implementation<\/a> is outdated and almost as unreliable as ISAPI on IIS.\n<\/p>\n<p>At NeoSmart Technologies, we&#8217;ve been using the original PHP ISAPI implementation to get our various PHP-powered scripts up and running. It&#8217;s proven to be <a href=\"https:\/\/neosmart.net\/blog\/20-hours-of-outage\/\" rel=\"follow\">as unreliable as only badly-coded software can be<\/a>, but falling back to CGI as a &#8220;solution&#8221; just wasn&#8217;t going to happen. But now we&#8217;ve come across a much un-mentioned FastCGI implementation created by Microsoft themselves in an effort to increase the reliability of PHP on IIS since PHP weren&#8217;t doing their jobs.\n<\/p>\n<p>The not-so-sharply-named &#8220;<a href=\"http:\/\/www.iis.net\/learn\/application-frameworks\/install-and-configure-php-on-iis\/installing-php-on-windows-vista-with-fastcgi\" rel=\"follow\">FastCGI for IIS<\/a>&#8221; plugin seems to be the real deal. At the moment, it supports IIS 5 &amp; 6 via the now-dying ISAPI infrastructure &#8211; and is a complete modular implementation for IIS 7. Unlike the other FastCGI implementations for IIS, this one really works. It load-balances requests across multiple threads (just like CGI does), and properly recycles them when threads end (just like CGI doesn&#8217;t).\n<\/p>\n<p>Most importantly, it&#8217;s fast, lite, &amp; trouble-free. Only time can tell, but this does seem like the real McCoy, if you will. For the past 2 days NST has been available only off-and-on thanks to Slashdot (linking to <a href=\"https:\/\/neosmart.net\/blog\/vistas-hideous-wakeup-support\/\" rel=\"follow\">this story<\/a>) &#8211; and PHP&#8217;s ISAPI extension just can&#8217;t handle all those requests, and needed a reset every hour. We&#8217;ve just switched to FastCGI for IIS, and so far, so good!\n<\/p>\n<p>Besides just the facts and resources currently sitting on our server, FastCGI for IIS spews good &#8220;vibes&#8221; all over the place. It&#8217;s nothing tangible, and we obviously won&#8217;t have any numbers until the next Slashdot effect comes in, but we&#8217;re going to go ahead and advise that anyone frustrated with PHP&#8217;s lack of stability and uptime on Windows servers (and IIS in particular) should switch right away.\n<\/p>\n<p>It&#8217;s really sad that PHP ignores a huge portion of the market. Sure, Linux is a great server product, and Apache really is wonderful (after all, <a href=\"http:\/\/betanews.com\/2005\/09\/15\/iis-7-0-learns-a-few-tricks-from-apache\/\" rel=\"follow\">Microsoft has admitted<\/a> to using Apache&#8217;s modular structure as their inspiration for IIS 7!) &#8211; but IIS 6 (and 7 too) are decent web servers in their own right. It doesn&#8217;t make sense that they should serve Perl, Python, and ASP.NET 2.0 so well, and just stumble head-over-heels when it comes to PHP.<sup id=\"rf2-389\"><a href=\"#fn2-389\" title=\"Some of the guys behind NeoSmart Technologies are currently working on a Web 2.0 startup, and it sure as hell won&rsquo;t be using PHP!\" rel=\"footnote\">2<\/a><\/sup><\/p>\n<hr class=\"footnotes\"><ol class=\"footnotes\"><li id=\"fn1-389\"><p>Currently, NeoSmart Technologies is running off of a dedicated host (from <a href=\"http:\/\/www.lpwebhosting.com\" rel=\"follow\">LunarPages<\/a>) with eAccelerator, MySQL, WP Cache, and some more optimization goodiness.&nbsp;<a href=\"#rf1-389\" class=\"backlink\" title=\"Jump back to footnote 1 in the text.\">&#8617;<\/a><\/p><\/li><li id=\"fn2-389\"><p>Some of the guys behind NeoSmart Technologies are currently working on a Web 2.0 startup, and it sure as hell won&#8217;t be using PHP!&nbsp;<a href=\"#rf2-389\" class=\"backlink\" title=\"Jump back to footnote 2 in the text.\">&#8617;<\/a><\/p><\/li><\/ol>","protected":false},"excerpt":{"rendered":"<p>It seems that every time we get on Slashdot (or Digg for that matter), we go down. It doesn&#8217;t make a difference just how well prepared we are, what kind of hosting we&#8217;re using, what the application being Slashdotted is, &hellip; <a href=\"https:\/\/neosmart.net\/blog\/no-more-downtime\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[298,297,83,300,299,301,124],"class_list":["post-389","post","type-post","status-publish","format-standard","hentry","category-software","tag-cgi","tag-fastcgi","tag-iis","tag-iis-7","tag-isapi","tag-longhorn-server","tag-php"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4xDa-6h","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/posts\/389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/comments?post=389"}],"version-history":[{"count":6,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/posts\/389\/revisions"}],"predecessor-version":[{"id":2273,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/posts\/389\/revisions\/2273"}],"wp:attachment":[{"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/media?parent=389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/categories?post=389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/tags?post=389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}