{"id":410,"date":"2007-04-11T17:14:35","date_gmt":"2007-04-11T17:14:35","guid":{"rendered":"http:\/\/neosmart.net\/blog\/2007\/opensource-on-windows-and-iis\/"},"modified":"2013-08-26T18:15:19","modified_gmt":"2013-08-26T23:15:19","slug":"opensource-on-windows-and-iis","status":"publish","type":"post","link":"https:\/\/neosmart.net\/blog\/opensource-on-windows-and-iis\/","title":{"rendered":"How To: Open Source + Windows + IIS&#8230; with Stability"},"content":{"rendered":"<p>As we mentioned back in March, we switched <a href=\"http:\/\/neosmart.net\/\" rel=\"follow\">NeoSmart Technologies<\/a> over from <a href=\"http:\/\/www.php.net\/\" rel=\"follow\">PHP<\/a>&#8216;s ISAPI extension for Windows\/IIS to Microsoft&#8217;s &#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; implementation instead in hopes of achieving better reliability and uptime during times of heavy load.<\/p>\n<p>Whether you like Windows or not, at some point or the other, you may find yourself using IIS 6 or even 7, and then you&#8217;ll be wondering why the open source technologies you&#8217;re using aren&#8217;t as stable as ASP or MSSQL on Windows. However, ever since the release of IIS 6, Microsoft has truly remade Internet Information Services as a real contender in the server market, providing a highly secure, stable, fast, and flexible web server for the masses. IIS 7 (due to ship with Longhorn Server sometime in 2007) is currently showing all the signs of being even better, with complete modularization of all components and a highly extensible, XML-based framework.<\/p>\n<p>We&#8217;re really happy to be able to finally say with all conviction that it really works! This week, NeoSmart Technologies was featured on the homepages of many link aggregation sites (<a href=\"http:\/\/developers.slashdot.org\/story\/07\/04\/10\/011220\/people-dont-hate-to-make-desktop-apps-do-they\" rel=\"follow\">including Slashdot<\/a>) for our <a href=\"https:\/\/neosmart.net\/blog\/people-dont-hate-making-desktop-apps\/\" rel=\"follow\">Desktop vs. Web RIAs<\/a> article. And we&#8217;re glad to say that even with the extreme load, for the entire past week we&#8217;ve had 100.00% uptime with respect to network, IIS, <a href=\"http:\/\/www.mysql.com\/\" rel=\"follow\">MySQL<\/a>, and everything else!<\/p>\n<p><!--more--> <\/p>\n<p>We can conclude with all certainty that PHP&#8217;s extensions and modules for Windows servers aren&#8217;t to be trusted and should be avoided at all cost for anyone looking to achieve any sort of uptime. The other changes that we did involved removing MySQL as a service and launching it as a standalone app via <a href=\"http:\/\/support.microsoft.com\/kb\/137890\" rel=\"follow\">Microsoft&#8217;s srvany<\/a> application-service bridge &#8211; it seems that a good portion of the Open Source community has a severe problem dealing with load in a Windows-only environment.<\/p>\n<p>However, for those looking for a &#8220;no-nonsense&#8221; open source approach, we can confidently recommend <a href=\"http:\/\/www.perl.org\/\" rel=\"follow\">Perl<\/a>, <a href=\"http:\/\/www.python.org\/\" rel=\"follow\">Python<\/a>,&nbsp;and <a href=\"http:\/\/www.postgresql.org\/\" rel=\"follow\">PostgreSQL<\/a> as being the way to go. Unlike PHP, Perl is highly stable with or without the ISAPI extensions, and works even better in FastCGI mode &#8211; though that&#8217;s unnecessary given the (minimal) performance hit comparing ISAPI to FastCGI (ISAPI is about 10% faster under load).<\/p>\n<p><a href=\"http:\/\/www.python.org\/\" rel=\"follow\">Python<\/a> is similarly very reliable and highly stable extension for IIS, though we haven&#8217;t had the chance to test it under (real-user) extreme load as we have with PHP and Perl. However, in our simulated load extended-testing scenarios, both Python&#8217;s ISAPI and (Fast)CGI implementations worked great and without a flaw on IIS 6.<\/p>\n<p>In running and maintaining the NeoSmart servers, we&#8217;ve come to get a good &#8220;feel&#8221; for the various companies out there catering to webmasters around cyberspace. Some, like PHP, seem to only focus on their &#8220;recommend platforms&#8221; when it comes to stability, and don&#8217;t really care about any other configuration. However,&nbsp;<a href=\"http:\/\/www.activestate.com\/\" rel=\"follow\">ActiveState<\/a> gets 5 out of 5 stars when it comes to producing excellent implementations of open source languages, and we can only hope that PHP and others can someday achieve even 80% of what ActiveState has done with their high-reliability, high-performance packages for Windows. ActivePerl and ActivePython are <em>the only way to go<\/em> if you&#8217;re looking to deploy either scripting language in a Windows environment. And if you want to go with CGI instead of IIS, make sure to use <a href=\"http:\/\/www.iis.net\/learn\/application-frameworks\/install-and-configure-php-on-iis\/installing-php-on-windows-vista-with-fastcgi\" rel=\"follow\">Microsoft&#8217;s FastCGI solution<\/a> as well, since the 3rd party FastCGI implementation for IIS is very buggy and not under active development.<\/p>\n<p><a href=\"http:\/\/www.postgresql.org\/\" rel=\"follow\">PostgreSQL<\/a> undoubtedly wins the performance challenge when it&#8217;s paired up with the likes of MySQL. PostgreSQL is a fully matured RDBMS solution that works just great out of the box on Windows and Linux alike. We&#8217;ve never had any stability or compatibility problems with it on Windows Server 2003, and we highly recommend it for anyone looking to run a minimal-maintenance web server on Windows.<\/p>\n<p>The only problem with this picture is that two most popular open source scripting dependencies are the least reliable out there on Windows. Just why PHP and MySQL don&#8217;t focus on what is fast-becoming a decent-sized chunk of the user market isn&#8217;t very clear to us. However, MySQL is fairly reliable on the majority of systems we tested it on, with the only issues occurring after upgrading to another version, or when the service becomes corrupted and you&#8217;re forced to run it as a standalone application.<\/p>\n<p>We wish we could say the same for PHP, which despite the most popular open source scripting language in use today remains absolutely unreliable and completely indifferent in its attitude towards users of Microsoft&#8217;s operating system and web server. Thankfully, Microsoft&#8217;s FastCGI solution addresses most of the issues present with regards to stability and reliability on Windows, however, the companies attitude as a whole isn&#8217;t what we would consider to be &#8220;user-friendly&#8221; with respect to this issue.<\/p>\n<p>At the end of the day, if you want to use Microsoft Windows Server 2003 and IIS to power your website,<sup id=\"rf1-410\"><a href=\"#fn1-410\" title=\"And you might as well, since Apache on Windows has its own host of problems to worry about and Apache + Windows (WAMP) isn&rsquo;t as &ldquo;successful&rdquo; of a combination as IIS + Windows (WIMP) 9 times out of 10.\" rel=\"footnote\">1<\/a><\/sup> and are looking to deploy open source products on Windows 2003, then you should look for or write your own platforms that use Python or Perl in combination with PostgreSQL for maximum efficiency, minimum downtime, and least headache.<\/p>\n<hr class=\"footnotes\"><ol class=\"footnotes\"><li id=\"fn1-410\"><p>And you might as well, since Apache on Windows has its own host of problems to worry about and Apache + Windows (WAMP) isn&#8217;t as &#8220;successful&#8221; of a combination as IIS + Windows (WIMP) 9 times out of 10.&nbsp;<a href=\"#rf1-410\" class=\"backlink\" title=\"Jump back to footnote 1 in the text.\">&#8617;<\/a><\/p><\/li><\/ol>","protected":false},"excerpt":{"rendered":"<p>As we mentioned back in March, we switched NeoSmart Technologies over from PHP&#8216;s ISAPI extension for Windows\/IIS to Microsoft&#8217;s &#8220;FastCGI for IIS&#8221; implementation instead in hopes of achieving better reliability and uptime during times of heavy load. Whether you like &hellip; <a href=\"https:\/\/neosmart.net\/blog\/opensource-on-windows-and-iis\/\">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":[345,83,248,344,124,346,342,347],"class_list":["post-410","post","type-post","status-publish","format-standard","hentry","category-software","tag-activestate","tag-iis","tag-mysql","tag-perl","tag-php","tag-postgresql","tag-python","tag-web-server"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4xDa-6C","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/posts\/410","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=410"}],"version-history":[{"count":3,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/posts\/410\/revisions"}],"predecessor-version":[{"id":2304,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/posts\/410\/revisions\/2304"}],"wp:attachment":[{"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/media?parent=410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/categories?post=410"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/tags?post=410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}