<?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>Lucifr &#187; lifesteam</title>
	<atom:link href="http://lucifr.com/tags/lifesteam/feed/" rel="self" type="application/rss+xml" />
	<link>http://lucifr.com</link>
	<description>不只是又一个网志</description>
	<lastBuildDate>Tue, 09 Mar 2010 05:39:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Sweetcron：构建属于自己的Lifestream [Web2.0]</title>
		<link>http://lucifr.com/2008/08/30/host-your-own-lifestream-by-sweetcron/</link>
		<comments>http://lucifr.com/2008/08/30/host-your-own-lifestream-by-sweetcron/#comments</comments>
		<pubDate>Sat, 30 Aug 2008 13:23:20 +0000</pubDate>
		<dc:creator>Lucifr</dc:creator>
				<category><![CDATA[推荐文章]]></category>
		<category><![CDATA[网事随风]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[lifesteam]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[sweetcron]]></category>
		<category><![CDATA[web2.0]]></category>

		<guid isPermaLink="false">http://lucifr.com/?p=478</guid>
		<description><![CDATA[ 在之前的一篇文章玩转Lifestream [Web2.0]中lucifr很详细地介绍了当前很是时髦的feed集成服务，其中提到了Sweetcron这个独立的Lifestream程序，通过它，我们就可以像建立wordpress一样，在自己的服务器上用自己的域名构建Feed集成服务。... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://lucifr.com/wp-content/uploads/2008/08/sweetcron-logo.png"><img title="sweetcron_logo" style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="79" alt="sweetcron_logo" src="http://lucifr.com/wp-content/uploads/2008/08/sweetcron-logo-thumb.png" width="206" align="right" border="0" /></a> 在之前的一篇文章<a href="http://lucifr.com/2008/08/24/intro-to-lifestream/">玩转Lifestream [Web2.0]</a>中lucifr很详细地介绍了当前很是时髦的feed集成服务，其中提到了<a href="http://www.sweetcron.com/">Sweetcron</a>这个独立的Lifestream程序，通过它，我们就可以像建立wordpress一样，在自己的服务器上用自己的域名构建Feed集成服务。大家先可以看看lucifr自己的Lifestream站点：<a href="http://i.lucifr.com">iLuicfr</a>。</p>
<p> Sweetcron的安装较wordpress稍显复杂，但如果手动安装过Wordpress的话，应该也不在话下。下面就让lucifr来具体介绍一下Sweetcron的安装方法和一些注意事项：</p>
<p><a href="http://lucifr.com/wp-content/uploads/2008/08/sweetcron-home.png"><img title="sweetcron_home" style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="162" alt="sweetcron_home" src="http://lucifr.com/wp-content/uploads/2008/08/sweetcron-home-thumb.png" width="244" border="0" /></a><a href="http://lucifr.com/wp-content/uploads/2008/08/sweetcron-single.png"><img title="sweetcron_single" style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="166" alt="sweetcron_single" src="http://lucifr.com/wp-content/uploads/2008/08/sweetcron-single-thumb.png" width="244" border="0" /></a></p>
<h4>下载</h4>
<p>到<a href="http://code.google.com/p/sweetcron/downloads/list">这里</a>下载最新的Sweetcron</p>
<h4>需求</h4>
<ul>
<li>服务器支持PHP5及MySQL4.1 </li>
<li>服务器支持mod_rewrite </li>
<li>一些你的网络相关服务的feed </li>
</ul>
<p>如果你用的是国外的服务器，一般都会支持前两点中提到的功能，另外你需要有建立新数据库的权限，国内的一些便宜的主机可能不会支持那么多功能。Luicfr使用的是<a href="http://www.hostmonster.com/track/lucifr/CODE21">Hostmonster</a>（推广链接）。</p>
<h4>建立数据库</h4>
<p>在你的服务器上建立一个新的数据库，并绑定用户在这个数据库上。记住你的数据库名称、用户名、以及密码，之后会用到。</p>
<h4>上传文件</h4>
<p>解压下载到的Sweetcron程序，使用FTP或是类似的工具将解压后的Sweetcron目录中的内容上传到你的服务器上（<strong>最好是支持显示隐藏文件的ftp工具，因为.htaccess文件一般默认为隐藏</strong>）。<strong>注意！</strong>本指导是默认要将Sweetcron作为域名的主站点安装到根目录下的，比如lucifr是在服务器上添加了一个新的目录，然后将i.lucifr.com解析到这个目录，所以这个目录就是i.lucifr.com的根目录了。至于装到域名的下级目录中的设置方法我们后面会提到。</p>
<h4>.htaccess</h4>
<p>如果你使用的ftp工具很不幸地不支持显示<strong>.htaccess</strong>或是你在上传完文件后没在域名的根目录下发现这个文件，那么你需要手动创建一个。方法也很简单，先用windows的记事本或是Notepad++之类的文本编辑工具创建一个包含以下代码的txt文件，上传到根目录后再重命名为.htaccess。</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: #00008b;">Options</span><span style="color: Gray;"> +</span><span style="color: Blue;">FollowSymLinks</span></li>
<li><span style="color: Blue;">RewriteEngine</span><span style="color: Gray;">&nbsp;</span><span style="color: Green;">On</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Blue;">RewriteBase</span><span style="color: Gray;"> /</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Blue;">RewriteCond</span><span style="color: Gray;"> %{</span><span style="color: Blue;">REQUEST_FILENAME</span><span style="color: Gray;">} !-</span><span style="color: Blue;">f</span></li>
<li><span style="color: Blue;">RewriteCond</span><span style="color: Gray;"> %{</span><span style="color: Blue;">REQUEST_FILENAME</span><span style="color: Gray;">} !-</span><span style="color: Blue;">d</span></li>
<li><span style="color: Blue;">RewriteRule</span><span style="color: Gray;"> ^</span><span style="color: Olive;">(</span><span style="color: Gray;">.*</span><span style="color: Olive;">)</span><span style="color: Gray;">$ </span><span style="color: Blue;">index</span><span style="color: Gray;">.</span><span style="color: Blue;">php</span><span style="color: Gray;">?/$</span><span style="color: Maroon;">1</span><span style="color: Gray;"> [</span><span style="color: Blue;">L</span><span style="color: Gray;">]</span></li></ol></div>
</p>
<h4>配置Sweetcron</h4>
<ol>
<li>将 <strong>system/application/config/</strong> 目录中的 <strong>config-sample.php </strong>重命名为 <strong>config.php</strong> </li>
<li>用文本编辑工具打开 <strong>config.php</strong> ，在约第14行的位置，可以看到“$config['base_url']&#160;&#160;&#160; = &quot;http://www.your-site.com/&quot;;”将其中的 http://www.your-site.com/ 换为你的网站的完整链接，在lucifr的情况，就替换为 <a href="http://i.lucifr.com/">http://i.lucifr.com/</a> </li>
<li>将 <strong>system/application/config/</strong> 目录中的 <strong>database-sample.php</strong> 重命名为 <strong>database.php</strong> </li>
<li>用文本编辑工具打开 <strong>database.php</strong> ，从约第40行开始，是对数据库的设置，自己手动安装过wordpress的童鞋已经在笑了，这和设置wp-config.php是差不多的。<tt>hostname</tt>一项一般都是localhost，无需改动，但也有些服务器是要改的；<tt>database</tt>, <tt>username</tt>,和 <tt>password</tt> 分别对应一开始建立数据库时的数据库名称、用户名、和密码。 </li>
<li>好了，在浏览器中指向你的地址，如果上述的配置都没有问题，就可以开始安装了。 安装过程和Wordpress很像，在填入用户名和邮箱后会自动生成密码。 </li>
</ol>
<p><a href="http://lucifr.com/wp-content/uploads/2008/08/sweetcron-install.png"><img title="sweetcron_install" style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="328" alt="sweetcron_install" src="http://lucifr.com/wp-content/uploads/2008/08/sweetcron-install-thumb.png" width="504" border="0" /></a> </p>
<h4>子目录的安装</h4>
<p>如果是要将Sweetcron安装到你现有域名的子目录中，比如<strong>http://your-site.com/lifestream/</strong>，那么就需要做如下的改动：</p>
<ol>
<li>编辑<strong>config.php</strong>中的<strong>base_url</strong>时（上面的第二步），要填入包含了子目录了完整URL。比如http://your-site.com/lifestream/ </li>
<li>在<strong>.htaccess</strong>中找到<tt><strong>RewriteBase /</strong></tt>，改为<tt><strong>RewriteBase /&lt;子目录名&gt;</strong></tt>，比如<tt>RewriteBase /lifestream</tt> </li>
</ol>
<h4>关于密码</h4>
<p>目前的Sweetcron版本还不支持在后台修改密码，也就是说你只能使用生成的密码登录。这肯定是十分不方便的。但我们可以通过修改数据库来将密码变成我们好记的。</p>
<p>首先到<a title="http://www.md5.cz/" href="http://www.md5.cz/">http://www.md5.cz/</a>这个网站中将你想要使用的密码生成为md5格式。然后用数据库查看工具（phpMyAdmin等）进入你的sweetcron数据库，浏览users表，这里你就可以看到user_pass这个value了，用上面生成的md5格式的密码进行替换就可以了。</p>
<p>目前也有人通过修改option相关的文件来向后台中添加修改密码的功能，但还未得到作者的认可，lucifr仅将此法列于此供参考：</p>
<p>分别用以下文件替换<strong>system/application/models</strong>目录中的<strong>option_model.php</strong>和<strong>system/application/views/admin</strong>目录中的<strong>options.php</strong>。</p>
<p>下载：<a href="http://sweetcron.googlecode.com/issues/attachment?aid=-6133473838516078643&amp;name=option_model.php">option_model.php</a>&#160;&#160; 下载：<a href="http://sweetcron.googlecode.com/issues/attachment?aid=5269534568151233089&amp;name=options.php">options.php</a></p>
<p>注：本文基于Sweetcron107b版本，随其进一步升级，具体安装方法可能会有所出入，如有出入请以官方文档为准。</p>
</p>
</p>
<p><strong>后记：</strong>Sweetcron目前还处于测试阶段，很多功能还有待于提高和完善，仅靠作者<a href="http://www.yongfook.com">yongfook</a>一人之力发展还是有限的，希望能有更多的开发者加入并贡献力量。</p>
<p>相关资源：</p>
<ul>
<li><a href="http://code.google.com/p/sweetcron/">Sweetcron project (on Google code）</a></li>
<li><a href="http://www.sweetcron.com">Sweetcron 官方主页</a></li>
<li><a href="http://www.yongfook.com">作者Yongfook的Lifestream</a></li>
<li><a href="http://groups.google.com/group/sweetcron">Sweetcron 讨论组（on Google Group）</a></li>
<li><a href="http://i.lucifr.com/">Lucifr的Lifestream演示：iLucifr</a></li>
</ul>
<br /><strong>墙内的朋友请<a href="http://feed.lucifr.com">通过此链接订阅</a>以确保能正常跳转到原文!</strong>
<hr /><a href="http://lucifr.com/2008/08/30/host-your-own-lifestream-by-sweetcron/">原文链接</a> | <a href="http://lucifr.com/2008/08/30/host-your-own-lifestream-by-sweetcron/#comments" title="已有 24 条留言了，加入讨论~">留个脚印</a> | <a href="http://lucifr.com/contact">联系作者</a> | <a href="http://twitter.com/lucifr" title="follow作者的twitter">Follow Me</a> | <a title="收藏到del.icio.us" href="http://del.icio.us/post?url=http://lucifr.com/2008/08/30/host-your-own-lifestream-by-sweetcron/&title=Sweetcron：构建属于自己的Lifestream [Web2.0]">Del.icio.us</a> <br />
<small>Copyright © 2005~2008 <a href="http://lucifr.com">Lucifr</a><br /> 本Feed内容版权归属于Lucifr，转载请遵循<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/">知识共享署名-非商业性使用-相同方式共享 2.5 中国大陆许可协议</a></small>
	<h4>相关文章</h4>
	<ul class="st-related-posts">
	<li><a href="http://lucifr.com/2008/09/04/dress-up-your-sweetcron-with-some-brand-new-themes/" title="让Sweetcron装扮起来 [主题] (2008年09月04日)">让Sweetcron装扮起来 [主题]</a> (6)</li>
	<li><a href="http://lucifr.com/2008/08/24/intro-to-lifestream/" title="玩转Lifestream [Web2.0] (2008年08月24日)">玩转Lifestream [Web2.0]</a> (14)</li>
	<li><a href="http://lucifr.com/2007/05/03/rss-hurts/" title="原来聚合这么伤 (2007年05月03日)">原来聚合这么伤</a> (11)</li>
	<li><a href="http://lucifr.com/2006/09/29/bloglines-and-google-reader/" title="Bloglines和Google Reader同时改版 (2006年09月29日)">Bloglines和Google Reader同时改版</a> (7)</li>
	<li><a href="http://lucifr.com/2006/08/31/better-a-feedlistday/" title="Blogday? 不如来个Feedlistday! (2006年08月31日)">Blogday? 不如来个Feedlistday!</a> (4)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://lucifr.com/2008/08/30/host-your-own-lifestream-by-sweetcron/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
	</channel>
</rss>
