<?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>The Techie World of Edison</title>
	<atom:link href="http://www.edisongotan.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.edisongotan.com</link>
	<description>Technology and more...</description>
	<lastBuildDate>Fri, 08 Apr 2011 08:48:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Installing Nginx with PHP on Windows</title>
		<link>http://www.edisongotan.com/installing-nginx-with-php-on-windows/</link>
		<comments>http://www.edisongotan.com/installing-nginx-with-php-on-windows/#comments</comments>
		<pubDate>Thu, 07 Apr 2011 07:27:06 +0000</pubDate>
		<dc:creator>Edison Tan</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Server]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[quick start]]></category>
		<category><![CDATA[web server]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.edisongotan.com/?p=28</guid>
		<description><![CDATA[Well as we all know, Nginx (Pronounced as Engine X) is one of the popular web servers (like Apache or IIS) available in the market today according to Netcraft. It was designed to work with Unix and Linux systems but &#8230; <a href="http://www.edisongotan.com/installing-nginx-with-php-on-windows/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.edisongotan.com/wp-content/uploads/2011/04/nginx.gif"><img class="size-full wp-image-34 alignnone" title="NGINX" src="http://www.edisongotan.com/wp-content/uploads/2011/04/nginx.gif" alt="NGINX" width="121" height="32" /></a><a href="http://www.edisongotan.com/wp-content/uploads/2011/04/php.gif"><img class="size-full wp-image-35 alignnone" title="PHP" src="http://www.edisongotan.com/wp-content/uploads/2011/04/php.gif" alt="PHP" width="120" height="67" /></a><a href="http://www.edisongotan.com/wp-content/uploads/2011/04/windows.jpg"><img class="size-full wp-image-36 alignnone" title="Windows" src="http://www.edisongotan.com/wp-content/uploads/2011/04/windows.jpg" alt="Windows" width="80" height="80" /></a></p>
<p>Well as we all know, Nginx (Pronounced as Engine X) is one of the popular web servers (like Apache or IIS) available in the market today according to Netcraft. It was designed to work with Unix and Linux systems but now we have a build for Windows users. Since I&#8217;m going to play with all of them in the next few days, I started to install Nginx on my own machine. I&#8217;ve searched the internet on how to do this but there are a lot of quick start guides that is outdated so I personally documented what I did and post it here for you guys.</p>
<p><strong>Installation Environment</strong></p>
<ul>
<li>Windows 7 Professional 64 bit (You can use Windows Vista and XP if you like)</li>
</ul>
<p><strong>Download the following</strong></p>
<ul>
<li>Nginx from <a href="http://www.nginx.org/">http://www.nginx.org</a> (I used version 0.8.54 since it is the stable version as of April 7, 2011)</li>
<li>PHP (non-thread safe version / non installer) from <a href="http://www.nginx.org/">http://www.php.net</a> (I used version 5.3.6 since it is the recommended stable release as of April 7, 2011)</li>
</ul>
<p><strong>Instructions</strong></p>
<ol>
<li>Extract the Nginx to any directory you want. I prefer C:\nginx.</li>
<li>Extract the PHP and place it anywhere you like. I put mine on C:\php.</li>
<li>Go to the Nginx directory and uncomment or modify few lines of code as shown below (Reference 1 and 2).</li>
<li>Open the command line (cmd).</li>
<li>Go to the php directory and type &#8220;php-cgi.exe -b 9000&#8243;. Make sure to allow the port in your Windows Firewall.</li>
<li>Open another command line (cmd).</li>
<li>Type &#8220;c:\nginx\nginx.exe&#8221; assuming that you followed my directory structure. You can also double click the nginx.exe icon using Windows Explorer. Make sure that you allow port 80 in your Windows Firewall since port 80 is the default port for HTTP.</li>
<li>Create a file and place &#8220;&lt;?php phpinfo(); ?&gt;&#8221; inside. Save it to C:\nginx\html\phpinfo.php assuming that you followed my directory structure. You can change the filename if you want.</li>
<li>Open your favorite web browser like Google Chrome or Mozilla Firefox then visit localhost or the location of the test file you created earlier. PHP Information should appear and the rest is up to you to configure.</li>
<li>To stop Nginx, open a command line as Administrator then type &#8220;c:\nginx\nginx.exe -s stop&#8221;.</li>
</ol>
<div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_1"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">Reference 1 (Line 43 to 46 based on Nginx 0.8.54)</a></td><td align="right"><a href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.edisongotan.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://www.edisongotan.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.edisongotan.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.edisongotan.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><pre class="php" style="font-family:monospace;"><ol start="43"><li class="li1"><div class="de1">location <span class="sy0">/</span> <span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">     root   html<span class="sy0">;</span></div></li><li class="li1"><div class="de1">     index  index<span class="sy0">.</span>html index<span class="sy0">.</span>htm index<span class="sy0">.</span>php<span class="sy0">;</span></div></li><li class="li1"><div class="de1"><span class="br0">&#125;</span></div></li></ol></pre></div></div>
<div id="wpshdo_2" class="wp-synhighlighter-outer"><div id="wpshdt_2" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_2"></a><a id="wpshat_2" class="wp-synhighlighter-title" href="#codesyntax_2"  onClick="javascript:wpsh_toggleBlock(2)" title="Click to show/hide code block">Reference 2 (Line 66 to 72 based on Nginx 0.8.54)</a></td><td align="right"><a href="#codesyntax_2" onClick="javascript:wpsh_code(2)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.edisongotan.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_2" onClick="javascript:wpsh_print(2)" title="Print code"><img border="0" style="border: 0 none" src="http://www.edisongotan.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.edisongotan.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.edisongotan.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_2" class="wp-synhighlighter-inner" style="display: block;"><pre class="php" style="font-family:monospace;"><ol start="66"><li class="li1"><div class="de1">location ~ \<span class="sy0">.</span>php$ <span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">     root           html<span class="sy0">;</span></div></li><li class="li1"><div class="de1">     fastcgi_pass   127<span class="sy0">.</span>0<span class="sy0">.</span>0<span class="sy0">.</span>1<span class="sy0">:</span><span class="nu0">9000</span><span class="sy0">;</span></div></li><li class="li1"><div class="de1">     fastcgi_index  index<span class="sy0">.</span>php<span class="sy0">;</span></div></li><li class="li2"><div class="de2">     fastcgi_param  SCRIPT_FILENAME  <span class="re0">$document_root</span><span class="re0">$fastcgi_script_name</span><span class="sy0">;</span></div></li><li class="li1"><div class="de1">     <span class="kw1">include</span>        fastcgi_params<span class="sy0">;</span></div></li><li class="li1"><div class="de1"><span class="br0">&#125;</span></div></li></ol></pre></div></div>
<p><strong>Who uses Nginx in the Philippines?</strong></p>
<ul>
<li>www.sulit.com.ph and more&#8230;</li>
</ul>
<p><strong>Summary</strong></p>
<ul>
<li>After completing the instructions above, we are now running PHP using FastCGI under Nginx on Windows.</li>
</ul>
<p><strong>Recommendations</strong></p>
<ul>
<li>You can create a Windows batch file to automate the loading of Nginx and PHP-CGI.</li>
<li>Use this setup for development only and run your final project under Linux or Unix platform since Nginx works better there.</li>
<li>Play with the Nginx and PHP configuration files to tweak it. Learning doesn&#8217;t stop here.</li>
</ul>
<p><strong>Next on The Techie World of Edison</strong></p>
<ul>
<li>LightTPD on Windows</li>
<li>Importance of PHP Frameworks in small to enterprise class projects.</li>
<li>Nginx Cluster on Linux / BSD</li>
<li>LightTPD and Nginx Benchmarks on Linux</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.edisongotan.com/installing-nginx-with-php-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welcome to The Techie World of Edison</title>
		<link>http://www.edisongotan.com/welcome-to-the-techie-world-of-edison/</link>
		<comments>http://www.edisongotan.com/welcome-to-the-techie-world-of-edison/#comments</comments>
		<pubDate>Tue, 05 Apr 2011 17:39:03 +0000</pubDate>
		<dc:creator>Edison Tan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[edison go tan]]></category>
		<category><![CDATA[edisongotan]]></category>
		<category><![CDATA[foss]]></category>
		<category><![CDATA[it]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[professional]]></category>
		<category><![CDATA[professor]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[welcome]]></category>

		<guid isPermaLink="false">http://www.edisongotan.com/?p=8</guid>
		<description><![CDATA[Hello guys! I&#8217;m Edison and this is my new technology blog. I&#8217;ve created this to share my personal experiences in my daily life as an IT Professional. I hope that my blog would inspire more people to explore and be &#8230; <a href="http://www.edisongotan.com/welcome-to-the-techie-world-of-edison/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hello guys! I&#8217;m Edison and this is my new technology blog. I&#8217;ve created this to share my personal experiences in my daily life as an IT Professional. I hope that my blog would inspire more people to explore and be a better IT practitioner. Feel free to contact me or comment on my post. Thanks for visiting!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edisongotan.com/welcome-to-the-techie-world-of-edison/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

