{"id":486,"date":"2007-10-10T04:14:05","date_gmt":"2007-10-10T04:14:05","guid":{"rendered":"http:\/\/neosmart.net\/blog\/2007\/fastcgi-for-iis-final-released-congratulations-to-the-iis-team\/"},"modified":"2013-08-26T18:17:05","modified_gmt":"2013-08-26T23:17:05","slug":"fastcgi-for-iis-final-released-congratulations-to-the-iis-team","status":"publish","type":"post","link":"https:\/\/neosmart.net\/blog\/fastcgi-for-iis-final-released-congratulations-to-the-iis-team\/","title":{"rendered":"FastCGI for IIS Final Released, Congratulations to the IIS Team!"},"content":{"rendered":"<p>Congratulations are in order for Microsoft&#8217;s IIS development team &#8211; today <a href=\"http:\/\/php.iis.net\/\" rel=\"follow\">they&#8217;ve just announced<\/a> the public availability of the final version of the IIS-FastCGI ISAPI Extension &#8211; a long-awaited and much-improved way of running just about any open-source scripting engine on IIS, safely and quickly.\n<\/p>\n<p>The Microsoft [[MSFT]] FastCGI module for IIS 5.1, 6, and 7 (with Windows Vista and Server 2008) have been in the works for quite a while now, and we&#8217;ve been using them since the first beta release &#8211; they&#8217;re good. While the biggest benefit will be seen in using FastCGI w\/ IIS7 to take advantage of the new <a href=\"http:\/\/blogs.iis.net\/ksingla\/archive\/2006\/11\/16\/caching-in-iis7.aspx\" rel=\"follow\">kernel-mode caching<\/a>, it&#8217;s still a huge improvement over the old way of running scripting engines for languages like PHP on Windows.\n<\/p>\n<p><strong>The Problem<\/strong>: Most open-source scripting engines like PHP and Ruby on Rails were initially developed on\/for the *nix world. On Unix-based platforms, the easiest way of creating multi-threaded applications is just to run the same app twice or more (The CGI model). On Windows, that doesn&#8217;t work out so well, because it takes a lot more resources to create another process. So these engines released Windows-specific single-process multi-threaded engines; the only problem was, <a href=\"http:\/\/www.google.com\/search?hl=en&amp;safe=off&amp;rls=com.microsoft:en-US&amp;sa=X&amp;oi=spell&amp;resnum=0&amp;ct=result&amp;cd=1&amp;q=php+access+violation+error&amp;spell=1\" rel=\"follow\">they weren&#8217;t stable<\/a>. Too many race conditions in some very non-thread-safe code wreaked havoc on many Windows systems, with the PHP developers themselves giving &#8220;Stability on IIS&#8221; the lowest level of concern.\n<\/p>\n<p><!--more--><\/p>\n<p><strong>The Solution<\/strong>: Enter Microsoft&#8217;s FastCGI module. It&#8217;s a multi-threaded service that creates several processes of the scripting engine <em>and keeps them running<\/em> thereby eliminating the overhead of creating new processes and also letting you use non-thread-safe binaries without a fear in the world.\n<\/p>\n<p>Despite all the bad press Microsoft seems to be getting these days from the open source community, even when <a href=\"http:\/\/developers.slashdot.org\/story\/07\/10\/03\/1626209\/opennet-net-libraries-go-open-source\" rel=\"follow\">they do things right<\/a>, the IIS team has really outdone itself with this project. The benchmarks <a href=\"http:\/\/blogs.iis.net\/bills\/archive\/2006\/10\/31\/PHP-on-IIS.aspx\" rel=\"follow\">are quite amazing<\/a>, and the team seems to genuinely care about pleasing open-source users on the Windows world. While PHP\/Zend has released <a href=\"http:\/\/www.iis-aid.com\/articles\/my_word\/difference_between_php_thread_safe_and_non_thread_safe_binaries\" rel=\"follow\">supposedly thread-safe PHP binaries<\/a>, we&#8217;ve been using them here on NeoSmart Technologies for a while, and though they <em>are<\/em> much better, we&#8217;ve still had the occasional access violation error w\/ a exit code indicating it was caused by non-thread-safe code.\n<\/p>\n<p>While most servers running PHP are also running a Unix-based operating system, it&#8217;s always good to have a choice. After all, there <em>are<\/em> quite a few projects out there that require Windows-based servers, have some PHP scripts they&#8217;d like to run (the fact that it&#8217;s the most popular language for all those highly-used packages should be a clue), and can&#8217;t afford another to shell out the cost of another *nix machine. And, as the open-source community would say, it&#8217;s all about having as many choices as possible.\n<\/p>\n<p>[<a href=\"http:\/\/www.iis.net\/downloads?tabid=34&amp;g=6&amp;i=1521\" rel=\"follow\">download<\/a>] [<a href=\"http:\/\/www.iis.net\/learn\/application-frameworks\/install-and-configure-php-on-iis\/configuring-the-fastcgi-extension-for-iis-60\" rel=\"follow\">configuration<\/a>]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Congratulations are in order for Microsoft&#8217;s IIS development team &#8211; today they&#8217;ve just announced the public availability of the final version of the IIS-FastCGI ISAPI Extension &#8211; a long-awaited and much-improved way of running just about any open-source scripting engine &hellip; <a href=\"https:\/\/neosmart.net\/blog\/fastcgi-for-iis-final-released-congratulations-to-the-iis-team\/\">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":[297,83,124,142,177,4],"class_list":["post-486","post","type-post","status-publish","format-standard","hentry","category-software","tag-fastcgi","tag-iis","tag-php","tag-servers","tag-web-development","tag-windows"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4xDa-7Q","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/posts\/486","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=486"}],"version-history":[{"count":4,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/posts\/486\/revisions"}],"predecessor-version":[{"id":2438,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/posts\/486\/revisions\/2438"}],"wp:attachment":[{"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/media?parent=486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/categories?post=486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/tags?post=486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}