<?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>Caramboo Dot Com &#187; nginx</title>
	<atom:link href="http://caramboo.com/tag/nginx/feed/" rel="self" type="application/rss+xml" />
	<link>http://caramboo.com</link>
	<description>The Web Log  (b-log) of Dave Naylor</description>
	<lastBuildDate>Thu, 09 Sep 2010 10:20:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Karmic Koala KO</title>
		<link>http://caramboo.com/2009/11/karmic-koala-ko/</link>
		<comments>http://caramboo.com/2009/11/karmic-koala-ko/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 14:58:31 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[rdiff-backup]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://caramboo.com/?p=484</guid>
		<description><![CDATA[Oh bollocks I’ve been busy. Like an old record I’ve said this before many times but I really do think I enjoy fiddling with stuff and getting it working rather than actually using the thing I’m messing about with.]]></description>
			<content:encoded><![CDATA[<p><img src="http://caramboo.com/gallery/zp-core/i.php?&amp;a=sitepics&amp;w=300&amp;i=koala.jpg" alt="koala.jpg" class="alignleft cheese" /> Oh bollocks I&#8217;ve been busy.  Like an old record I&#8217;ve said this before many times but I really do think I enjoy fiddling with stuff and getting it working rather than actually using the thing I&#8217;m messing about with.  However, the reason for no updates for a few weeks is that I had a bit of a catastrophe on the <a href="http://theformanalyst.com" title="The Form Analyst">Form Analyst Site</a>.  There&#8217;s no need to go too much into detail but basically I messed up upgrading the server from Ubuntu 9.04 (<em>was that Jaunty or Intrepid?</em>) to 9.10 Karmic Koala.  It was my fault for being a bit blasé about the upgrade because usually nothing goes wrong.  Except it did this time.</p>
<p>I found myself with the option of working out what had gone wrong (the server wouldn&#8217;t even boot properly) which I may have managed, or to bite the bullet and start again with a fresh install.  I went for the latter because I really couldn&#8217;t be bothered with the former and it would enable me to build a few applications in a way I wished I&#8217;d done on the first install.  Fortunately due to <a href="http://wordpress.org/extend/plugins/wp-db-backup/">WP-DB-Backup</a> and <a href="http://rdiff-backup.nongnu.org/">rdiff-backup</a> I was able to rebuild and restore quite quickly.  DefCon 1 at 8.30am, multi-user subscription website and server back up and running at 2.00pm.  I even managed to get a temporary forum up and running so that the users had somewhere to hang out.  That was on-line at 9.00am.</p>
<p>The new set-up has <a href="http://wiki.nginx.org/Main">Nginx</a> proxying to <a href="http://apache.org">Apache</a>.  I&#8217;d wanted to do it for ages and so now Nginx serves up the static content, Apache looks after all the PHP and other swanky malarky.  I also did a review of the plugins on the site and found that one was really slowing things down to a crawl.  It was <a href=" http://wordpress.org/extend/plugins/social-access-control/">Social Access Control</a> that seemed to be strangling the server.  I swapped it out for Justin Tadlock&#8217;s <a href="http://justintadlock.com/archives/2009/09/17/members-wordpress-plugin">Members</a> plugin.  Things are a lot swifter.  Maybe I didn&#8217;t have Social Access set-up correctly, who knows, it&#8217;s toast now.  Members takes a little bit more messing about with templates to get it running sweet, but I like the concept and it&#8217;s there to stay over at <a href="http://theformanalyst.com">TFA</a>.</p>
<p>I was thinking of writing a few posts on the way I&#8217;ve got Nginx and Apache working in tandem but all I did was Google their names with the word proxy thrown in for good measure and all the help you need is already out there.  </p>
<p><em>Google is your friend</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://caramboo.com/2009/11/karmic-koala-ko/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sweetcron</title>
		<link>http://caramboo.com/2009/04/sweetcron/</link>
		<comments>http://caramboo.com/2009/04/sweetcron/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 11:20:25 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Glastonbury]]></category>
		<category><![CDATA[Rants and Causes]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[primary]]></category>
		<category><![CDATA[secondary]]></category>
		<category><![CDATA[sweetcron]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://caramboo.com/?p=29</guid>
		<description><![CDATA[<p><img alt="Sweetcron" src="http://caramboo.com/wp-content/uploads/2009/04/sc.gif" class="alignright" width="150" height="156" />I thought I&#8217;d start off the re-born blog with a post about <a href="http://www.sweetcron.com/">Sweetcron</a>.  I very nearly abandoned <a href="http://wordpress.org">WordPress</a>  and considered  completely switching to Sweetcron the second I found it.  I haven&#8217;t done though and this site will continue to use WordPress.  However,  I&#8217;ve set up a sub-domain to run Sweetcron at <a href="http://me.caramboo.com">me.caramboo.com</a>.  So why <em>two</em> sites?</p>
<p><a href="http://caramboo.com/2009/04/sweetcron/" class="more-link">Read more on Sweetcron&#8230;</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img alt="Sweetcron" src="http://caramboo.com/wp-content/uploads/2009/04/sc.gif" class="alignright" width="150" height="156" />I thought I&#8217;d start off the re-born blog with a post about <a href="http://www.sweetcron.com/">Sweetcron</a>.  I very nearly abandoned <a href="http://wordpress.org">WordPress</a>  and considered  completely switching to Sweetcron the second I found it.  I haven&#8217;t done though and this site will continue to use WordPress.  However,  I&#8217;ve set up a sub-domain to run Sweetcron at <a href="http://me.caramboo.com">me.caramboo.com</a>.  So why <em>two</em> sites?</p>
<h3>Automated Lifestream Blog Software</h3>
<p>Sweetcron is software that pulls in the <em>feeds</em> offered by other sites, ideally your own or your own accounts. In particular it&#8217;s an excellent tool to aggregate all your social networking updates, uploaded images, loved songs, bookmarked links, favourited videos etc etc.  If you use a site and you have a presence there, if that site has an <a href="http://en.wikipedia.org/wiki/RSS_(file_format)">RSS</a> feed of your activities, Sweetcron can deal with it.     </p>
<p>Having a site pull in a boat load of stuff is cool, but what&#8217;s the point.  Well, you can serve up those feeds in any way you want and each individual feed item can display as much or as little information about itself as you want, provided of course that the information is in the feed in the first place.  My personal preference is for bite sized chunks or excerpts which is probably the way most people go.</p>
<p>The really cool thing about it all is that once you&#8217;ve decided which feeds to import, figured out how you want them to be displayed and tweaked things a little, you can pretty much walk away and let it get on with things all on its own.  If you haven&#8217;t got access to a <a href="http://en.wikipedia.org/wiki/Cron">cron</a> utility, which is how the thing is automated, Sweetcron has a built in pseudo cron to update every 30 minutes.  </p>
<p>So you end up with an automated sort-of-blog that records your activities.  If you can&#8217;t be bothered blogging for a while but nevertheless continue <em>tweeting</em> or other such funky things, your legions of readers can see what you&#8217;re up to.  If you still don&#8217;t get it, no worries, there&#8217;s plenty more other things to get excited about.  The bottom line is, I think it&#8217;s fun.</p>
<h3>Blogging</h3>
<p>I mentioned that I nearly abandoned WordPress completely when I found Sweetcron.  Well; as well as having all the super cool feed capabilities, Sweetcron has a built-in blogging feature.  You can either have the blog posts feature amongst all the other items or even have them displayed more prominently, as in WordPress et al.  The blogging facility isn&#8217;t as complex as WordPress&#8217; but to be honest I don&#8217;t think it&#8217;s meant to be.  It&#8217;s just there if you want it and it&#8217;s more than adequate for the task. I suppose you could say that you use WordPress for blogging but hey it can import RSS if you want, you can use Sweetcron as an RSS aggregator but hey it can do blogging if you want.  Easy.</p>
<p>I&#8217;ve decided that the fun thing would be to interlink the two.  Sweetcron takes the WordPress feed and WordPress can be made to list the Sweetcron latest items.  Your <em>blog</em> then doesn&#8217;t get all cluttered and your <em>lifestream</em> just becomes that, a record of your day to day interaction with the interweb, all on its lonesome.  Sweet.</p>
<h3>Themes</h3>
<p><a href="http://me.caramboo.com"><img alt="" src="http://caramboo.com/wp-content/uploads/2009/04/mecron.png" title="Me Dot Caramboo Dot Com" class="alignleft" width="150" height="127" /></a>Just as in WordPress, Sweetcron is themeable.  OK there aren&#8217;t kazillions of themes out there but it&#8217;s relatively easy to get build your own theme based on the default ones that come supplied with the software or one of the third party themes available.  </p>
<p>I&#8217;m currently using the <a href="http://code.google.com/p/socialcubes-theme/">SocialCubes Theme</a> by Derek Punsalan.  Tweaked a bit as usual by me.  As always I&#8217;m intending to build my own theme from scratch but hey, I&#8217;m a slow worker remember!</p>
<p>I found a couple of pages that list Sweetcron themes:</p>
<ul>
<li><a href="http://www.sweetcronthemes.com/">Sweetcron Themes</a></li>
<li><a href="http://www.carbongraffiti.com/notebook/2008/11/24/25-of-the-best-sweetcron-powered-lifestreams/">25 of the best sweetcron powered lifestreams</a></li>
</ul>
<h3>So Let it Roll</h3>
<p>So there you go, my Sweetcron lifestream is up and running and there for all to see.  If you fancy one yourself and want some help, you can join the <a href="http://groups.google.com/group/sweetcron/">Sweetcron Google Group</a> or just <a href="http://caramboo.com/contact">contact me</a> and I&#8217;ll be glad to help out where I can.</p>
<h4>Sweetcron and Nginx</h4>
<p>I use the alternative (to Apache) web server <a href="http://wiki.nginx.org">Nginx</a> to run my sites.  It took me a while to figure out how to get Sweetcron to work happily under Nginx as there&#8217;s some rewriting to be done.  After ages I finally figured out a way to make it work.  The details are below after the read more: </p>
<p><span id="more-29"></span></p>
<p><em>Server Config:</em></p>
<p># &#8212;&#8212;&#8212;-<br />
<code><br />
server {</p>
<p>            listen   80;<br />
            server_name foo.bar.com;</p>
<p>            access_log /var/log/nginx/foo.bar_access.log;<br />
            error_log /var/log/nginx/foo.bar_error.log;</p>
<p>            location / {</p>
<p>                        root   /var/www/foo.bar.com/;<br />
                        index  index.php index.html;<br />
                        if (!-e $request_filename) {<br />
                        rewrite ^(.*)$ /index.php last;<br />
                        break;<br />
                        }<br />
                        }</p>
<p>            # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000</p>
<p>            location ~ .php$ {<br />
            fastcgi_pass 127.0.0.1:9000;<br />
            fastcgi_index index.php;<br />
            include /etc/nginx/fastcgi_params;<br />
            fastcgi_param SCRIPT_FILENAME /var/www/foo.bar.com/index.php;<br />
            }<br />
      }<br />
</code><br />
#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p><em>The /etc/nginx/fastcgi_params are unchanged from those that work for WordPress etc:</em></p>
<p>#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
<code><br />
fastcgi_param  QUERY_STRING       $query_string;<br />
fastcgi_param  REQUEST_METHOD     $request_method;<br />
fastcgi_param  CONTENT_TYPE       $content_type;<br />
fastcgi_param  CONTENT_LENGTH     $content_length;</p>
<p>fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;<br />
fastcgi_param  REQUEST_URI        $request_uri;<br />
fastcgi_param  DOCUMENT_URI       $document_uri;<br />
fastcgi_param  DOCUMENT_ROOT      $document_root;<br />
fastcgi_param  SERVER_PROTOCOL    $server_protocol;</p>
<p>fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;<br />
fastcgi_param  SERVER_SOFTWARE    nginx/$nginx_version;</p>
<p>fastcgi_param  REMOTE_ADDR        $remote_addr;<br />
fastcgi_param  REMOTE_PORT        $remote_port;<br />
fastcgi_param  SERVER_ADDR        $server_addr;<br />
fastcgi_param  SERVER_PORT        $server_port;<br />
fastcgi_param  SERVER_NAME        $server_name;</p>
<p># PHP only, required if PHP was built with --enable-force-cgi-redirect<br />
fastcgi_param  REDIRECT_STATUS    200;</p>
<p></code></p>
<p>#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><em>In system/application/config/config.php I made sure this line read like so:</em></p>
<p>#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
<code><br />
$config['uri_protocol'] = "REQUEST_URI";<br />
</code> </p>
<p>#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Hope that helps someone out.</p>
]]></content:encoded>
			<wfw:commentRss>http://caramboo.com/2009/04/sweetcron/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
