<?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 jiaoz blog</title>
	<atom:link href="http://blog.jiaoz.sg/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jiaoz.sg</link>
	<description>jiaoer is just saying ...</description>
	<lastBuildDate>Tue, 29 Sep 2009 02:08:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Nginx to php-fpm over socket</title>
		<link>http://blog.jiaoz.sg/index.php/2009/09/28/nginx-to-php-fpm-over-socket/</link>
		<comments>http://blog.jiaoz.sg/index.php/2009/09/28/nginx-to-php-fpm-over-socket/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 09:47:32 +0000</pubDate>
		<dc:creator>jiaoer</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://blog.jiaoz.sg/?p=50</guid>
		<description><![CDATA[Just changed my php-fpm / nginx config to use socket instead of tcp/ip, as both of them are running from the same host anyway.
The result is a much faster response time for the php-driven web pages. It&#8217;s almost instant!
The changes are really simple.
Updating php-fpm
in /etc/php/php-fpm.conf (your path may be different from mine):
change this


&#60;value name=&#34;listen_address&#34;&#62;127.0.0.1:9000&#60;/value&#62;

to this


&#60;value [...]]]></description>
			<content:encoded><![CDATA[<p>Just changed my php-fpm / nginx config to use socket instead of tcp/ip, as both of them are running from the same host anyway.</p>
<p>The result is a much faster response time for the php-driven web pages. It&#8217;s almost instant!</p>
<p>The changes are really simple.</p>
<h1>Updating php-fpm</h1>
<p>in /etc/php/php-fpm.conf (your path may be different from mine):</p>
<p>change this</p>
<pre class="brush: php;">

&lt;value name=&quot;listen_address&quot;&gt;127.0.0.1:9000&lt;/value&gt;
</pre>
<p>to this</p>
<pre class="brush: php;">

&lt;value name=&quot;listen_address&quot;&gt;/var/run/phpfpm.sock&lt;/value&gt;
</pre>
<h1>Updating nginx</h1>
<p>In your nginx.conf, change this:</p>
<pre class="brush: php;">

fastcgi_pass 127.0.0.1:9000;
</pre>
<p>to this</p>
<pre class="brush: php;">

fastcgi_pass unix:/var/run/phpfpm.sock;
</pre>
<p>That&#8217;s it !</p>
<p>You can use another path or file name for the socket. But it shall be the same in both configuration files.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jiaoz.sg/index.php/2009/09/28/nginx-to-php-fpm-over-socket/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LEMP (Linux/Nginx/MySQL/PHP) Installer</title>
		<link>http://blog.jiaoz.sg/index.php/2009/09/26/lemp-linuxnginxmysqlphp-installer/</link>
		<comments>http://blog.jiaoz.sg/index.php/2009/09/26/lemp-linuxnginxmysqlphp-installer/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 11:04:21 +0000</pubDate>
		<dc:creator>jiaoer</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://blog.jiaoz.sg/?p=37</guid>
		<description><![CDATA[After 2 days of work, lemp-installer version 0.1 is out.
Okay, i had been setting up quite a few virtual box, mainly Ubuntu based, for my development work or testing. And its not that fun to keep repeating the same process of compiling php and nginx, not to mention the configuration part.
So i wrote this simple [...]]]></description>
			<content:encoded><![CDATA[<p>After 2 days of work, lemp-installer version 0.1 is out.</p>
<p>Okay, i had been setting up quite a few virtual box, mainly Ubuntu based, for my development work or testing. And its not that fun to keep repeating the same process of compiling php and nginx, not to mention the configuration part.</p>
<p>So i wrote this simple script to help automate some of the processes. By running this script, you get a simple but fully working, light weight web server as well as mysql database. It&#8217;s great for people just want to try out nginx, as it&#8217;s getting popular but probably there are still people have not heard about it, or heard about it but have not tried it. And I hope this script may help to close the gap a bit.</p>
<h1><strong>DISCLAIMER !</strong></h1>
<ul>
<li>The script is provided &#8220;as is&#8221;. There is no support or warranty that i am providing.</li>
<li>I am not responsible for any damage that may happens on your system. you had been warned.</li>
<li>The script is released under GPL, so just grab it and modify if you like. Send me suggestion or patches and we can make it better together.</li>
</ul>
<p>Also, I am no bash/shell script expert, so at this stage of the script, altho usable, is not very refined and flexible. If I have time I will improve as I go along.</p>
<h1><strong>Credits</strong></h1>
<p>Before going on to the juice of this post, a little credit first.</p>
<p>The script is largely base on some recipes / tutorials I found on the internet. Most importantly this one from InterfaceLab Blog: <a href="http://interfacelab.com/nginx-php-fpm-apc-awesome/">NGINX + PHP-FPM + APC = Awesome</a></p>
<p>Feel free to visit it if you want to understand the script better.</p>
<h1><strong>Pre-Requisite</strong></h1>
<p>I tested the script on Ubuntu server JJ / 9.04. But 8.04 should works fine too. Other ubuntu based linux distro should work also, altho I have not tested them. I would like to know if you tried them on say Xubuntu or Kubuntu.</p>
<p>I strongly recommend you to run the script in a fresh install, like under a virtual box. If not, at least make sure you do NOT have php, nginx already installed. At the moment the script is not smart enough to resolve any conflict yet.</p>
<h1><strong>What do you get after installation</strong></h1>
<ul>
<li>PHP 5.2.8 patched with php-fpm for FastCGI</li>
<li>Nginx 0.7.61</li>
<li>MySQL thru apt-get (exact version depends on your repository configuration)</li>
<li>Memcache server</li>
<li>PHP Extension Compiled in: bz2, cgi-fcgi, ctype, curl, date, dom, filter, gd, hash, iconv, json, libxml, mbstring, mcrypt, mhash, mysql, openssl, pcntl, pcre, pgsql, posix, session, SimpleXML, sockets, SPL, SQLite, tokenizer, xml, xmlreader, xmlwriter, zip, zlib</li>
<li>PHP Extension Modules: Memcache, APC, Syck</li>
<li>Phpmyadmin 3.2.2 English</li>
</ul>
<p>If you want to change the Php, nginx version, or PHP modules that you want to add/remove, you can modify the script (lemp-installer.sh) to do so.</p>
<h1><strong>Download</strong></h1>
<p>Just get it here <a href="http://dl.getdropbox.com/u/768270/recipes/lemp-installer-0.1.tar.gz">http://dl.getdropbox.com/u/768270/recipes/lemp-installer-0.1.tar.gz</a></p>
<h1><strong>Running the Installer Script<br />
</strong></h1>
<p>Goto the folder where you downloaded the tar.gz file. In your bash shell, type this:</p>
<pre class="brush: bash;">
tar zxvf lemp-installer-0.1.tar.gz
cd lemp-installer-0.1
./lemp-installer.sh
</pre>
<p>That&#8217;s it !</p>
<p><strong>NOTE</strong>: You might be prompted to enter your sudo password a few times. You will also be prompted during installation of mysql server for the database master password.</p>
<h1><strong>Where to GO from here</strong></h1>
<p>I am sure you will want to configure/customize the web server to your need, to do so, go to these folders:</p>
<ul>
<li>Php &#8211; /etc/php</li>
<li>Nginx &#8211; /etc/nginx</li>
<li>Web Sites &#8211; /etc/sites</li>
</ul>
<p>I also listed some resources here for your reference:</p>
<ul>
<li>PHP &#8211; www.php.net</li>
<li>Php-Fpm &#8211; http://php-fpm.org/Main_Page</li>
<li>Nginx &#8211; http://nginx.net/</li>
<li>Nginx wiki &#8211; http://wiki.nginx.org/</li>
</ul>
<p>And remember,  Google is your friend :p</p>
<p>With that, have fun running the script and playing with nginx <img src='http://blog.jiaoz.sg/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jiaoz.sg/index.php/2009/09/26/lemp-linuxnginxmysqlphp-installer/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Low Profile Alpha Roll Out</title>
		<link>http://blog.jiaoz.sg/index.php/2009/09/15/low-profile-alpha-roll-out/</link>
		<comments>http://blog.jiaoz.sg/index.php/2009/09/15/low-profile-alpha-roll-out/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 09:10:16 +0000</pubDate>
		<dc:creator>jiaoer</dc:creator>
				<category><![CDATA[jiaoz]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://blog.jiaoz.sg/?p=34</guid>
		<description><![CDATA[Okay I had started following a bunch of people on twitter.
Basically searching for people who tweets the term twitpic before, these shall be my potetinal users as well.
I have few followed back, not alot. But I can take it slowly. Myself will start uploading more picture for contents to attract people to try out as [...]]]></description>
			<content:encoded><![CDATA[<p>Okay I had started following a bunch of people on twitter.</p>
<p>Basically searching for people who tweets the term twitpic before, these shall be my potetinal users as well.</p>
<p>I have few followed back, not alot. But I can take it slowly. Myself will start uploading more picture for contents to attract people to try out as well.</p>
<p>Hope there will be people signing up soon and server can take the load, should not be a problem initially, keep my finger crossed <img src='http://blog.jiaoz.sg/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jiaoz.sg/index.php/2009/09/15/low-profile-alpha-roll-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nice Apache mod_rewrite tutorial</title>
		<link>http://blog.jiaoz.sg/index.php/2009/09/15/nice-apache-mod_rewrite-tutorial/</link>
		<comments>http://blog.jiaoz.sg/index.php/2009/09/15/nice-apache-mod_rewrite-tutorial/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 01:23:55 +0000</pubDate>
		<dc:creator>jiaoer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://blog.jiaoz.sg/?p=29</guid>
		<description><![CDATA[For future reference and also for the purpose of sharing.
Just came across this nice tutorial on mod_rewrite of Apache. I have not read thru the whole article in detail, but its use of graphics to illustrate some of the ideas have me sold.
Too bad that I switched over to use Nginx, else this will come [...]]]></description>
			<content:encoded><![CDATA[<p>For future reference and also for the purpose of sharing.</p>
<p>Just came across this nice tutorial on mod_rewrite of <a href="http://httpd.apache.org">Apache</a>. I have not read thru the whole article in detail, but its use of graphics to illustrate some of the ideas have me sold.</p>
<p>Too bad that I switched over to use <a href="http://nginx.net/" target="_blank">Nginx</a>, else this will come in handy. But will be a good reference still.</p>
<p>Link: <a href="http://net.tutsplus.com/tutorials/other/a-deeper-look-at-mod_rewrite-for-apache/" target="_blank">http://net.tutsplus.com/tutorials/other/a-deeper-look-at-mod_rewrite-for-apache/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jiaoz.sg/index.php/2009/09/15/nice-apache-mod_rewrite-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jquery ImageOverlay problem</title>
		<link>http://blog.jiaoz.sg/index.php/2009/09/12/jquery-imageoverlay-problem/</link>
		<comments>http://blog.jiaoz.sg/index.php/2009/09/12/jquery-imageoverlay-problem/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 10:11:28 +0000</pubDate>
		<dc:creator>jiaoer</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[jiaoz]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[todo]]></category>

		<guid isPermaLink="false">http://blog.jiaoz.sg/?p=19</guid>
		<description><![CDATA[I  have added quite a number of jquery plugin to enhance the UX of the jiaoz web site.
One of which is the image overlay plugin which works great in browse and search page. When you mouse over the thumbnail a text overlay will slides up the image title. A great way to browse the [...]]]></description>
			<content:encoded><![CDATA[<p>I  have added quite a number of jquery plugin to enhance the UX of the jiaoz web site.</p>
<p>One of which is the <a title="jquery imageoverlay plugin" href="http://www.ferretarmy.com/files/jQuery/ImageOverlay/ImageOverlay.html" target="_blank">image overlay plugin</a> which works great in browse and search page. When you mouse over the thumbnail a text overlay will slides up the image title. A great way to browse the pictures.</p>
<p>However it seems sometimes it causes problem in Firefox, I can reproduce it in Firefox on Windows XP and Ubuntu 64bit OS but easier to reproduce in WinXP. So far I do see this problem in Safari, Chrome or Opera.</p>
<p>So I am wondering if this is Firefox related or it problem coming from the ImageOverlay plugin itself.</p>
<p>The problem basically is related to the layout. It seems the script causes the layout to be distorted. However, the weird thing is it doesn&#8217;t always happen. Sometimes it does and sometimes it doesn&#8217;t, so this makes me think that the problem probably lies with some timing issue.</p>
<p>If anyone encountered such problem before I would like to know &#8230; meanwhile I will need to some debugging.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jiaoz.sg/index.php/2009/09/12/jquery-imageoverlay-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>svn: Committed revision 200</title>
		<link>http://blog.jiaoz.sg/index.php/2009/09/10/svn-committed-revision-200/</link>
		<comments>http://blog.jiaoz.sg/index.php/2009/09/10/svn-committed-revision-200/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 03:10:46 +0000</pubDate>
		<dc:creator>jiaoer</dc:creator>
				<category><![CDATA[subversion]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[jiaoz]]></category>
		<category><![CDATA[todo]]></category>

		<guid isPermaLink="false">http://blog.jiaoz.sg/?p=10</guid>
		<description><![CDATA[Okay, now my subversion revision has reached 200.
I stored all my code base at xp-dev.com, which is a great subversion hosting.  I highly recommend it. I like it so much now I had became a paid user instead of free account.
Anyway, the basic feature of the jiaoz site is pretty much up. Added lot [...]]]></description>
			<content:encoded><![CDATA[<p>Okay, now my subversion revision has reached 200.</p>
<p>I stored all my code base at <a title="xp-dev" href="http://www.xp-dev.com" target="_blank">xp-dev.com</a>, which is a great subversion hosting.  I highly recommend it. I like it so much now I had became a paid user instead of free account.</p>
<p>Anyway, the basic feature of the jiaoz site is pretty much up. Added lot of minor goodies to enhance the UX.</p>
<p>The final task shall be redo the home page layout to make the first impression more stand out.</p>
<p>Note to Self for future enhancements:</p>
<ul>
<li> Picture comments filtering by selecting an area on picture</li>
<li> Anonymous comments filtering (or simply disallow anonymous comment?)</li>
<li> Reporting mechanism for picture abuse (copyright? bad taste?)</li>
</ul>
<p>Let&#8217;s see if I can roll out alpha version by end of the month &#8230; will do so by simply keep posting new picture on twitter. Kinda low profile as it is launching, rather than big bang. I don&#8217;t want the server to be DDoSed &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jiaoz.sg/index.php/2009/09/10/svn-committed-revision-200/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Excited!</title>
		<link>http://blog.jiaoz.sg/index.php/2009/09/04/excited/</link>
		<comments>http://blog.jiaoz.sg/index.php/2009/09/04/excited/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 07:21:20 +0000</pubDate>
		<dc:creator>jiaoer</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[jiaoz]]></category>
		<category><![CDATA[todo]]></category>

		<guid isPermaLink="false">http://blog.jiaoz.sg/?p=3</guid>
		<description><![CDATA[Finally purchased the domain (jiaoz.sg).
The web site shall be launching soon (it&#8217;s actually kinda up, but no exteral back link so sort of no one knows about it anyway).
Still got some lose ends to tie up:

Logo (i will try my best &#8230; i am not formally design trained, anyway. But well &#8230;)
Touch up this blog [...]]]></description>
			<content:encoded><![CDATA[<p>Finally purchased the domain (jiaoz.sg).</p>
<p>The web site shall be launching soon (it&#8217;s actually kinda up, but no exteral back link so sort of no one knows about it anyway).</p>
<p>Still got some lose ends to tie up:</p>
<ul>
<li>Logo (i will try my best &#8230; i am not formally design trained, anyway. But well &#8230;)</li>
<li>Touch up this blog (configuration, more contents etc)</li>
<li>Redesign the Home page</li>
<li>Redo About page</li>
<li>Enhance the security especially SQL injection and xss</li>
<li>Add a twitter account ?</li>
<li>Setup email !</li>
</ul>
<p>That should be all for now. Stay tuned!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jiaoz.sg/index.php/2009/09/04/excited/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

