<?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>清风无影 &#187; Joseph</title>
	<atom:link href="http://imvoo.com/archives/author/joseph-2/feed" rel="self" type="application/rss+xml" />
	<link>http://imvoo.com</link>
	<description>移动网络化生活，关注智能手机、网络、cms</description>
	<lastBuildDate>Tue, 30 Aug 2011 03:24:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Apache with mpm-itk 2.2.19 for centos6.0</title>
		<link>http://imvoo.com/archives/590.html</link>
		<comments>http://imvoo.com/archives/590.html#comments</comments>
		<pubDate>Sun, 28 Aug 2011 16:22:08 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[软件应用]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[mpm-itk]]></category>
		<category><![CDATA[rpm]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=590</guid>
		<description><![CDATA[该rpm包是根据官方2.2.15和mpm-itk官方补丁制作而成，已经打上了rhel(centos)的几个补丁，安装之前一定要备份原httpd.conf文件，虽然安装之后会自动保存一个httpd.conf.rpmsave文件，但是还是手动保存下保险。]]></description>
			<content:encoded><![CDATA[<p>点击<a href="http://mpm-itk.sesse.net/" target="_blank">mpm-itk</a>的官方网站，一句话来说，就是可以让你的apache以特定的用户（一般来说是虚拟主机所有者）来运行php，提供了类似于suexec的功能，但是比suexec 更加容易设置和使用。</p>
<p><span id="more-590"></span></p>
<p>该rpm包是根据官方2.2.15和mpm-itk官方补丁制作而成，已经打上了rhel(centos)的几个补丁，安装之前一定要备份原httpd.conf文件，虽然安装之后会自动保存一个httpd.conf.rpmsave文件，但是还是手动保存下保险。4个文件</p>
<p>httpd, httpd-tools, httpd-devel, mod_ssl</p>
<p>安装 rpm -Uvh *.rpm</p>
<p>同时有32位的rpm包供安装，同样提供了src.rpm，<del>32位的系统请重新编译。</del></p>
<p><del>rpm &#8211;rebuild httpd-2.2.19-1.el6.src.rpm</del></p>
<p>因为我只所有下载，都在下面下面最后。</p>
<p>降级回到系统自带的httpd2.2.15</p>
<div>
<p>yum downgrade httpd httpd-tools httpd-devel mod_ssl</p>
</div>
<div></div>
<h3>使用方法：</h3>
<p>在&lt;VirtualHost&gt;&lt;/VirtualHost&gt;里添加：</p>
<pre class="brush: php; title: ; notranslate">

&lt;IfModule itk.c&gt;

AssignUserId someuser someuser

&lt;/IfModule&gt;
</pre>
<h3>需知：</h3>
<p>1、session不可写的问题，原php设置的session.save_path为/var/lib/php/session，只对root用户和apache组可写。可以设置该目录为/tmp/session  ，解决该问题。我的解决是把该用户加入apache组 usermod -G apache,someuser someuser</p>
<p>2、conf.d/itk.conf为mpm-itk的一些设置。由于conf.d/php.ini里的设置，如果没有itk.conf则不会解释php。</p>
<p>3、手动修改/etc/sysconfig/httpd 增加 HTTPD=/usr/sbin/httpd.itk</p>
<p>4、因为httpd.itk为root运行的程序。</p>
<p><a href="http://dl.dbank.com/c0mn1adp98" target="_blank">Dbank下载</a></p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/565.html" title="让apache2运行时使用不同的用户权限">让apache2运行时使用不同的用户权限</a></li><li><a href="http://imvoo.com/archives/407.html" title="对Apache的Order Deny Allow的理解">对Apache的Order Deny Allow的理解</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/590.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>拼音别名插件 PinyinAlias 0.9 for Joomla1.7</title>
		<link>http://imvoo.com/archives/587.html</link>
		<comments>http://imvoo.com/archives/587.html#comments</comments>
		<pubDate>Wed, 03 Aug 2011 16:28:45 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[拼音别名]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=587</guid>
		<description><![CDATA[距上次发布拼音插件，已经过去了很长时间，上次的是在1.6RC版的时候发布的。这次带了了很多更新。更换了拼音类，采用了This is Lukin zone写的拼音类。]]></description>
			<content:encoded><![CDATA[<p>距上次发布拼音插件，已经过去了很长时间，上次的是在1.6RC版的时候发布的。这次带了了很多更新。更换了拼音类，采用了&lt;a href=http://lukin.cn/blog/Developer/13.html target=_blank&gt;This is Lukin zone&lt;/a&gt;写的拼音类。</p>
<p><span id="more-587"></span></p>
<h2>插件简介：</h2>
<p>将Joomla文章别名转移成拼音别名，并用-符号隔开，兼容标题中出现的英文单词。</p>
<p>如：Joomla文章别名===&gt;joomla-wen-zhang-bie-ming</p>
<p>插件生效需将Global Configuration-&gt;Unicode Aliases设置为No。</p>
<p>插件选项：标题长度，默认为20，即需要截取标题的长度用于转移成拼音。设置为0则全部转换成拼音。</p>
<p>多音字：多音字默认只转换到第一个音，如果你想几个音都转换的话，选择全部。</p>
<p><del>因为用到<a href="http://php.net/manual/en/function.mb-convert-encoding.php" target="_blank">mb_convert_encoding()</a>函数进行编码转移，所以</del>需要服务器php支持MBString库，是否支持，可在phpinfo查看。</p>
<p>已知问题：</p>
<p><del>无论是utf-8编码的繁体字还是big5都是不支持的，utf-8编码的繁体字会有错误，big5编码的会出现空白。</del></p>
<p>新版已经支持utf-8的繁体字转拼音，再次感谢拼音类作者。</p>
<h2>版权协议：</h2>
<p>此插件基于GPL的许可协议的自由软件。</p>
<h2>下载：</h2>
<p><a href="http://dl.dbank.com/c0bfh8rykx" target="_blank">Dbank下载</a></p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/540.html" title="Joomla1.6 拼音别名（Pinyin Alias）插件 Plugin">Joomla1.6 拼音别名（Pinyin Alias）插件 Plugin</a></li><li><a href="http://imvoo.com/archives/550.html" title="Phoca GuestbookV2.0.1留言本插件 中文版 ">Phoca GuestbookV2.0.1留言本插件 中文版 </a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/587.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Joomla精选文章布局缓存出错的临时解决</title>
		<link>http://imvoo.com/archives/584.html</link>
		<comments>http://imvoo.com/archives/584.html#comments</comments>
		<pubDate>Wed, 03 Aug 2011 03:44:39 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[缓存]]></category>
		<category><![CDATA[解决]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=584</guid>
		<description><![CDATA[在上一篇说了一Joomla1.7.0的精选文章布局终于可以选择分类了，如果不开缓存的话，是没有问题的，开了缓存的话，多个精选文章的页面就会显示某个首先缓存的页面。]]></description>
			<content:encoded><![CDATA[<p>在上一篇说了一<a href="http://imvoo.com/archives/574.html">Joomla1.7.0的精选文章布局终于可以选择分类</a>了，如果不开缓存的话，是没有问题的，开了缓存的话，多个精选文章的页面就会显示某个首先缓存的页面。</p>
<p>这是由于Joomla的缓存是由参数id和view来命名的（md5），而参数ID是文章分类的ID，精选布局恰恰是那几个文章布局中不需要ID的唯一布局。该问题已经报告给官方，并得到了确认。在官方补丁出来之前，先来一个小补丸吧。</p>
<p><span id="more-584"></span>当然，如果你的Joomla没有使用多个精选文章布局页面，请不要使用下面的代码，因为我不知道这个代码会不会引起什么问题。</p>
<p>目标文件：/libraries/joomla/environment/request.php 第439行函数改为下面的，其时就是加了一个判断，如果视图为精选，且不存在id，则把id设置为itemid（菜单id）的负值（这是为了不和其它的冲突）。</p>
<p>更严谨的还要判断option=com_content。</p>
<pre class="brush: php; title: ; notranslate">

public static function set($array, $hash = 'default', $overwrite = true)
{
foreach ($array as $key =&gt; $value) {
self::setVar($key, $value, $hash, $overwrite);
}
if ( array_key_exists( 'view' , $array ) &amp;&amp; !array_key_exists( 'id' , $array ) &amp;&amp; $array['view']=='featured' ) {
self::setVar('id', '-'.$array['Itemid'] , $hash, $overwrite);
}
}
</pre>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li><li><a href="http://imvoo.com/archives/567.html" title="Joomla!1.6.5升级到1.7.0">Joomla!1.6.5升级到1.7.0</a></li><li><a href="http://imvoo.com/archives/562.html" title="joomla1.6.4发布，来迎接1.7吧">joomla1.6.4发布，来迎接1.7吧</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/584.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla论坛组件Kunena1.6.5中文语言包</title>
		<link>http://imvoo.com/archives/576.html</link>
		<comments>http://imvoo.com/archives/576.html#comments</comments>
		<pubDate>Tue, 02 Aug 2011 12:02:15 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[kunena]]></category>
		<category><![CDATA[中文语言包]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=576</guid>
		<description><![CDATA[Kunena是Joomla的标准论坛组件，不同于phpbb这种论坛需要桥接器，Kunena是原生的。]]></description>
			<content:encoded><![CDATA[<p>Kunena是Joomla的标准论坛组件，不同于phpbb这种论坛需要桥接器，Kunena是原生的。Kunena 这个词来源于非洲的斯瓦希利语（Swahili），意思是“陈述、讲话”。<br />
Kunena1.6.5需要Joomla1.5.23、Joomla1.6.6和Joomla1.7.0，对于1.6.6用户，建立还是升级到1.7.0。安装之前要备份和测试。</p>
<p><span id="more-576"></span>目前，官方版本里暂时没有中文语言包，所以：<br />
１）如果你还没有安装，那么可以打开Kunena的文件，把两个语言包放在archive文件夹里；<br />
２）已经安装的，把两个文件夹里的.ini文件分别解压到前台、后台语言文件夹里。</p>
<h3>翻译项目主页</h3>
<p>这个语言包是花了三天的时间翻译的，并同时参考网上的一些翻译，并在本地安装了Discuz参考一些术语，力求达到与国内论坛的统一。主要的词汇有主题、论坛、版块、分区、用户、会员、帖子、主题帖、置顶、锁定等。<br />
该中文语言包的翻译项目主页：https://www.transifex.net/projects/p/Kunena/team/zh_CN/<br />
这是由Kunena官方团队建立的翻译项目，其中的中文翻译小组。<br />
下面的下载只是Kunena组件的翻译，不包含插件、模块等其它一些Kunena官方出的扩展的语言包，但是上面那个翻译项目里已经包含了，可以下载后上传到相应的语言文件夹里，注意，这里需要改名，下载下来的名字并不是语言文件的名字，参考英文语言文件来改名。</p>
<h3>长远打算</h3>
<p>长期更新该语言包，争取每次Kunena升级的时候，都能跟上步伐，可以集成在官方安装包里。一些翻译错误或者有更很的翻译，可以在这里提出。或者您也可以申请加入Kunena的中文翻译小组。</p>
<h3>下载地址：</h3>
<p>下面这是打包的语言包，在后台像安装扩展那样直接安装就可以了。</p>
<p><a title="Skydrive下载点" href="https://skydrive.live.com/redir.aspx?cid=5684a3b118e4d35a&amp;resid=5684A3B118E4D35A%21270" target="_blank">Skydrive</a>  <a href="http://dl.dbank.com/c01aipk55f" target="_blank">Dank下载</a></p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li><li><a href="http://imvoo.com/archives/567.html" title="Joomla!1.6.5升级到1.7.0">Joomla!1.6.5升级到1.7.0</a></li><li><a href="http://imvoo.com/archives/562.html" title="joomla1.6.4发布，来迎接1.7吧">joomla1.6.4发布，来迎接1.7吧</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/576.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Joomla!1.7.0的精选文章布局终于加上了分类选择</title>
		<link>http://imvoo.com/archives/574.html</link>
		<comments>http://imvoo.com/archives/574.html#comments</comments>
		<pubDate>Mon, 25 Jul 2011 08:14:02 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=574</guid>
		<description><![CDATA[Joomla!1.7.0的精选文章布局终于加上了分类选择]]></description>
			<content:encoded><![CDATA[<p>在1.6的时候，精选文章布局的描述里写着“选择要显示的分类的精选文章”，而在设置里一直没有该选项，而现在1.7.0终于把这个选项加上了。</p>
<p>这对于想建立中国式布局的网站很有利。当时我在官网提交这个Bug的时候，一直没有修正。现在1.7.0终于修正了这个Bug，我在模板上写的一些控制语句，也可以去掉了。</p>
<p>当时，折中的方案是在模板里判断是某个菜单，然后不显示精选文章，直接显示模块。</p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/567.html" title="Joomla!1.6.5升级到1.7.0">Joomla!1.6.5升级到1.7.0</a></li><li><a href="http://imvoo.com/archives/562.html" title="joomla1.6.4发布，来迎接1.7吧">joomla1.6.4发布，来迎接1.7吧</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/574.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla!1.6.5升级到1.7.0</title>
		<link>http://imvoo.com/archives/567.html</link>
		<comments>http://imvoo.com/archives/567.html#comments</comments>
		<pubDate>Mon, 25 Jul 2011 06:00:02 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[升级]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=567</guid>
		<description><![CDATA[Joomla!1.6.5如期发布，我的一个网站也从1.6.5升级到了1.7.0，过程很顺利。1.6系列的网站必须升级到1.6.5才能升级1.7.0。就国内服务器的速度来说，最好还是下载升级包进行升级。]]></description>
			<content:encoded><![CDATA[<p>Joomla!1.7.0如期发布，我的一个网站也从1.6.5升级到了1.7.0，过程很顺利。1.6系列的网站必须升级到1.6.5才能升级1.7.0。就国内服务器的速度来说，最好还是下载升级包进行升级。<br />
<span id="more-567"></span><br />
在做升级之前一定要备份。</p>
<h3>1、在线升级1.7.0</h3>
<p>如果你的服务器在国外，那么用在线升级很方便，点击扩展-扩展管理-更新-查找更新，选中找到的升级包，然后点更新，即可。</p>
<p>如果服务器在国内的话，这种在线升级的方法还是别用了，会连接超时的，Joomla的服务器的下载速度不敢恭维，我的一个Wordpress网站（国内）在线升级都经常失败，而Wordpress的包才2M多，Joomla的包在7M，可想而知。</p>
<h3>2、用扩展管理上传更新</h3>
<p>下载<a href="http://joomlacode.org/gf/project/joomla/frs/?action=FrsReleaseBrowse&amp;frs_package_id=5986" target="_blank">1.6.5到1.7.0的升级包</a></p>
<p>（1）如果你的本地电脑上服务器的连接速度还不错的话，上传7M不会超时的话，可以直接在后台上传安装。</p>
<p>（2）如果上传速度不行，要么ftp上传到tmp目录，用从文件夹安装，要么就上传某一个服务器（或者就那台服务器）用通过网址远程安装。</p>
<h3>3、手动升级</h3>
<p>不建议采用，手动升级有些麻烦。还是下载那个升级包（或者完全包，但是要删除installtion文件夹），然后解压之后，再解压里面的Joomla_1.7.0-Stable-Update_Package.zip（升级包里）文件，把里面的文件全部上传，覆盖。</p>
<pre class="brush: php; title: ; notranslate">
/templates/atomic/css/blueprint/src/blueprintcss-0-9-1-cheatsheet-3-5-3-gjms.pdf
/administrator/manifests/packages/joomla.xml
/administrator/templates/bluestork/css/rounded.css
/administrator/templates/bluestork/css/norounded.css
/administrator/templates/bluestork/images/j_corner_bl.png
/administrator/templates/bluestork/images/j_header_right_rtl.png
/administrator/templates/bluestork/images/j_crn_br_dark.png
/administrator/templates/bluestork/images/j_crn_br_black.png
/administrator/templates/bluestork/images/j_crn_tr_black.png
/administrator/templates/bluestork/images/j_crn_bl_dark.png
/administrator/templates/bluestork/images/j_crn_tr_med.png
/administrator/templates/bluestork/images/j_crn_bl_light.png
/administrator/templates/bluestork/images/j_header_right.png
/administrator/templates/bluestork/images/j_crn_br_light.png
/administrator/templates/bluestork/images/j_crn_tl_black.png
/administrator/templates/bluestork/images/j_crn_bl_black.png
/administrator/templates/bluestork/images/j_crn_tr_dark.png
/administrator/templates/bluestork/images/j_crn_bl_med.png
/administrator/templates/bluestork/images/j_header_left.png
/administrator/templates/bluestork/images/j_crn_tl_med.png
/administrator/templates/bluestork/images/j_crn_tl_dark.png
/administrator/templates/bluestork/images/j_crn_br_med.png
/administrator/templates/bluestork/images/j_crn_tl_light.png
/administrator/templates/bluestork/images/j_crn_tr_light.png
/administrator/templates/bluestork/images/j_corner_br.png
/administrator/templates/bluestork/images/j_header_left_rtl.png
/administrator/templates/hathor/html/com_modules/module/modal.php
/administrator/templates/hathor/html/com_modules/module/edit_assignment.php
/administrator/templates/hathor/html/com_menus/item/edit_modules.php
/administrator/templates/hathor/html/com_menus/items/default_batch.php
/administrator/templates/hathor/html/com_languages/language/edit.php
/administrator/templates/hathor/html/com_content/article/edit_metadata.php
/administrator/templates/hathor/html/com_categories/category/edit_metadata.php
/administrator/templates/hathor/html/com_categories/categories/default_batch.php
/administrator/components/com_menus/models/forms/item_options.xml
/administrator/language/overrides/xx-XX.override.ini
/administrator/help/helpsites-16.xml
/administrator/help/en-GB/Components_Content_Categories_Edit.html
/administrator/help/en-GB/Components_Weblinks_Categories_Edit.html
/administrator/help/en-GB/Components_Newsfeeds_Categories_Edit.html
/administrator/help/en-GB/Components_Banners_Categories_Edit.html
/administrator/help/en-GB/Components_Contact_Categories_Edit.html
/media/editors/codemirror/css/docs.css
/media/editors/tinymce/jscripts/tiny_mce/tiny_mce_gzip.js
/media/editors/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php
/media/editors/tinymce/jscripts/tiny_mce/plugins/media/css/content.css
/media/mod_languages/images/ta.gif
/libraries/joomla/config.php
/libraries/joomla/import.php
/libraries/joomla/version.php
</pre>
<p>和这些目录</p>
<pre class="brush: php; title: ; notranslate">
/plugins/authentication/example
/plugins/user/example
/plugins/content/example
/plugins/extension/example
/administrator/templates/hathor/html/com_modules/select
/administrator/templates/hathor/html/com_media
/administrator/templates/hathor/html/mod_popular
/administrator/templates/hathor/html/mod_status
/administrator/templates/hathor/html/mod_latest
/administrator/components/com_weblinks/helpers/html
/media/editors/tinymce/jscripts/tiny_mce/plugins/pagebreak/css
/media/editors/tinymce/jscripts/tiny_mce/plugins/pagebreak/img
/media/editors/tinymce/jscripts/tiny_mce/plugins/example
</pre>
<p>不想删的话，也可以，就是多一些垃圾，不过在以后升级的时候，也许垃圾文件是越来越多，还是建议删掉吧。 做完这些之后，要升级数据库了，如果下载的是完全包，那么在phpmyadmin里执行installation/sql/mysql/joomla_update_17ga.sql，要是升级包的话，在phpmyadmin里执行/administrator/components/com_admin/sql/updates/mysql/1.7.0-2011-06-06.sql 和administrator/components/com_admin/sql/updates/mysql/1.7.0-2011-06-06-2.sql两个文件。 其实这两个文件的内容为以下，把#_替换成你的前缀，如jos 1、languages表增加ordering字段，用于排序，并设置索引</p>
<pre class="brush: php; title: ; notranslate"> ALTER TABLE `#__languages` ADD COLUMN `ordering` int(11) NOT NULL DEFAULT 0 AFTER `published`; ALTER TABLE `#__languages` ADD INDEX `idx_ordering` (`ordering`); </pre>
<p>2、增加表associations表</p>
<pre class="brush: php; title: ; notranslate"> CREATE TABLE IF NOT EXISTS `#__associations` ( `id` VARCHAR(50) NOT NULL COMMENT 'A reference to the associated item.', `context` VARCHAR(50) NOT NULL COMMENT 'The context of the associated item.', `key` CHAR(32) NOT NULL COMMENT 'The key for the association computed from an md5 on associated ids.', PRIMARY KEY `idx_context_id` (`context`, `id`), INDEX `idx_key` (`key`) ) DEFAULT CHARSET=utf8; </pre>
<p>至此，你的网站就运行在1.7.0下了。也许，这个时候你的浏览器里出现的后台界面会有一些不工整，你需要清除浏览器的缓存，然后刷新即可。</p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li><li><a href="http://imvoo.com/archives/562.html" title="joomla1.6.4发布，来迎接1.7吧">joomla1.6.4发布，来迎接1.7吧</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/567.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>让apache2运行时使用不同的用户权限</title>
		<link>http://imvoo.com/archives/565.html</link>
		<comments>http://imvoo.com/archives/565.html#comments</comments>
		<pubDate>Wed, 13 Jul 2011 02:13:33 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[软件应用]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[权限]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=565</guid>
		<description><![CDATA[我的服务器（debian）运行着不同的用户和网站。这意味着我要给这些用户ftp或者（和）ssh访问权限。像大多数网站一样，他们使用cms管理内容，一般需要这些目录的写权限。]]></description>
			<content:encoded><![CDATA[<p>在使用cpanel时，可以看到各个用户目录/home/youname/public_html都是各自用户的权限，而我们在自己建立服务器的时候，一般都是用chown把该目录转成nobody/apache等所有，如果又有ftp的话，这时管理就不方便了。</p>
<p>在中文搜索解决方案没有结果的情况下，用英文搜索，终于找到了<a href="http://blog.andreaolivato.net/open-source/running-apache2-virtualhost-with-different-users.html" target="_blank">这篇</a>文章。</p>
<p><span id="more-565"></span></p>
<p>简译如下：</p>
<p>在我的服务器（debian）运行着不同的用户和网站。这意味着我要给这些用户ftp或者（和）ssh访问权限。像大多数网站一样，他们使用cms管理内容，一般需要这些目录的写权限。</p>
<p>在过去，让这些目录可写的解决方案是把这些用户的组设置为www-data，并把目录的权限设置为644。这种方法可以让服务器和用户都能写，但是我并不满意这个方案。</p>
<p>在debian上包括ubuntu实现这个很简单。</p>
<p>sudo apt-get install apache2-mpm-itk</p>
<p>在虚拟主机的配置文件里加上：</p>
<p>&lt;IfModule mpm_itk_module&gt;</p>
<p>AssignUserId whichuser whichgroup</p>
<p>&lt;/IfModule&gt;</p>
<p>把以前更改的权限，放心的改回去吧。现在就没有问题了，apache拥有指定用户的权限了。</p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/590.html" title="Apache with mpm-itk 2.2.19 for centos6.0">Apache with mpm-itk 2.2.19 for centos6.0</a></li><li><a href="http://imvoo.com/archives/407.html" title="对Apache的Order Deny Allow的理解">对Apache的Order Deny Allow的理解</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/565.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>joomla1.6.4发布，来迎接1.7吧</title>
		<link>http://imvoo.com/archives/562.html</link>
		<comments>http://imvoo.com/archives/562.html#comments</comments>
		<pubDate>Wed, 29 Jun 2011 12:00:56 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[业界动态]]></category>
		<category><![CDATA[joomla]]></category>

		<guid isPermaLink="false">http://imvoo.com/archives/562.html</guid>
		<description><![CDATA[Joomla1.6.4发布，该版本修正了四个安全问题，和一个关于升级到1.7问题的更新。 1.7版将于7月19日发布，1.6版需要先升级到1.6.4才可以升级到1.7。 本文由Wordpress for android发布。 相关文章拼音别名插件 PinyinAlias 0.9 for Joomla1.7Joomla精选文章布局缓存出错的临时解决Joomla论坛组件Kunena1.6.5中文语言包Joomla!1.7.0的精选文章布局终于加上了分类选择Joomla!1.6.5升级到1.7.0]]></description>
			<content:encoded><![CDATA[<p>Joomla1.6.4发布，该版本修正了四个安全问题，和一个关于升级到1.7问题的更新。<br />
1.7版将于7月19日发布，1.6版需要先升级到1.6.4才可以升级到1.7。</p>
<p>本文由Wordpress for android发布。</p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li><li><a href="http://imvoo.com/archives/567.html" title="Joomla!1.6.5升级到1.7.0">Joomla!1.6.5升级到1.7.0</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/562.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla1.6.1发布</title>
		<link>http://imvoo.com/archives/559.html</link>
		<comments>http://imvoo.com/archives/559.html#comments</comments>
		<pubDate>Tue, 08 Mar 2011 06:34:50 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=559</guid>
		<description><![CDATA[Joomla1.6.1发布了，主要是一些安全更新。]]></description>
			<content:encoded><![CDATA[<p>Joomla1.6.1发布了，主要是一些安全更新。</p>
<p>1、可以在线更新，经过实验成功升级（注：服务器在国外，国内的服务器还没有条件试）；</p>
<p>2、在线下载，覆盖更新。</p>
<p>注意升级之前，备份网站，备份数据库，以备不时之需。如果升级失败，还可以返回。当然，这是任何程序升级之前的必备步骤。</p>
<p>中文语言包：<a href="http://joomlacode.org/gf/project/choice/frs/?action=FrsReleaseBrowse&amp;frs_package_id=5301"></a><a href="http://joomlacode.org/gf/project/choice/frs/?action=FrsReleaseBrowse&amp;frs_package_id=5301">http://joomlacode.org/gf/project/choice/frs/?action=FrsReleaseBrowse&amp;frs_package_id=5301</a></p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li><li><a href="http://imvoo.com/archives/567.html" title="Joomla!1.6.5升级到1.7.0">Joomla!1.6.5升级到1.7.0</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/559.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>歌曲音乐文件的分类整理</title>
		<link>http://imvoo.com/archives/555.html</link>
		<comments>http://imvoo.com/archives/555.html#comments</comments>
		<pubDate>Tue, 08 Mar 2011 01:28:50 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[软件应用]]></category>
		<category><![CDATA[整理]]></category>
		<category><![CDATA[音乐]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=555</guid>
		<description><![CDATA[电脑中音乐文件的整理,m4a,mp3文件的整理。]]></description>
			<content:encoded><![CDATA[<p>最近电脑里增加了很多的音乐，目前总共2500首左右，如此多的文件的归档整理是一个问题。正好的是，我的音乐文件80%以上都是最近下载的，以前的音乐文件也很少，整理起来也很快。</p>
<p><span id="more-555"></span>iTunes上下载的音乐歌曲基本上按歌手/专辑目录层次，歌曲名按曲目号 歌名来存储的，如：</p>
<blockquote><p>刘德华/美丽的一天/01 美丽的一天.m4a</p></blockquote>
<p>如果是多张光盘的话，文件名又为：</p>
<blockquote><p>1-01 Amor Gitano.m4a</p></blockquote>
<p>那么，我的音乐也是按这种格式整理的，初期的整理的音乐是如一格式</p>
<blockquote><p>01 &#8211; 美丽的一天.m4a</p></blockquote>
<p>另在ubuntu下支持几种目录结构：</p>
<blockquote><p>艺术家 &#8211; 专辑名</p>
<p>艺术家/专辑名</p></blockquote>
<p>但是，为了在文件浏览器里可以清晰地查找歌曲，建立还是以艺术家 / 专辑 来建立目录结构。</p>
<p>目前主要用的wmp12和ubuntu 下的Rhythmbox来听音乐。Rhythmbox下部分mp3的信息会乱码，可以用mp3tag把id3v1信息删除，保存apev2和id3v2信息。但是用Rhythmbox听一遍之后，tag信息会被改为id3 v2.4版本，wmp12只支持v2.3版本，这时在wmp12里的歌曲就会找不到信息，而归到未知艺术家里。</p>
<p>关于专辑文件夹名：</p>
<p>部分专辑，用了发行日期 专辑名的名称，如</p>
<blockquote><p>2011-03 Hold It Against Me &#8211; Single</p></blockquote>
<p>这样是最清楚的，一般电脑按名称排序时，也能达到按专辑发布日期排序的目的，这适合于专辑较多的歌手，如张学友在我这里有11张专辑，布兰妮包括单曲、EP共有20个目录。</p>
<p>自动整理：</p>
<p>像很好联机听歌软件存放的歌曲都很乱，在一个文件夹里。在初期的音乐整理的确是很麻烦。</p>
<p>目前的自动整理软件不好找，找到了一个说是提供这样的整理的功能的软件，但是不能在win7下使用，作罢。现在我用的是mp3tag来手动整理，当然是初期，以后下载音乐的时候，都按上述格式来整理就可以了。</p>
<p>在mp3tag里按album排序，同一专辑的，选上右键，然后移动到某个目录就可以，这就是手动。这步也可以在资源管理器里操作，更改视图为详细信息，同样按专辑排序，然后再操作。</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h3  class="related_post_title">暂无相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/12.html" title="放送Gmail邮箱邀请！！！">放送Gmail邮箱邀请！！！</a></li><li><a href="http://imvoo.com/archives/208.html" title="phpcms2008 URL规则详解（正式版）">phpcms2008 URL规则详解（正式版）</a></li><li><a href="http://imvoo.com/archives/232.html" title="Google Adsense 将于09年实现本地化支付">Google Adsense 将于09年实现本地化支付</a></li><li><a href="http://imvoo.com/archives/404.html" title="让DedeCms分类信息模型支持Digg功能">让DedeCms分类信息模型支持Digg功能</a></li><li><a href="http://imvoo.com/archives/345.html" title="在openSUSE11.1上安装和配置LAMP(Apache/MySQL/PHP)">在openSUSE11.1上安装和配置LAMP(Apache/MySQL/PHP)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/555.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>摘要输出带缩略图的Joomla Blog布局</title>
		<link>http://imvoo.com/archives/552.html</link>
		<comments>http://imvoo.com/archives/552.html#comments</comments>
		<pubDate>Tue, 25 Jan 2011 03:03:48 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[布局]]></category>
		<category><![CDATA[缩略库]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=552</guid>
		<description><![CDATA[国内的CMS很多都带有摘要输出的文章列表布局，在Joomla中与此相近的有Blog布局。下面，就利用该Blog布局改造成近似摘要输出（并带缩略图）的布局。]]></description>
			<content:encoded><![CDATA[<p>国内的CMS很多都带有摘要输出的文章列表布局，在Joomla中与此相近的有Blog布局。下面，就利用该Blog布局改造成近似摘要输出（并带缩略图）的布局。<span id="more-552"></span></p>
<p>直接上代码：</p>
<p>编辑模板html/com_content/category/blog.php和blog_item.php。</p>
<p>提取出第一张图，如果为空则不显示图片，如果不为空，则显示图片。这里并不是缩略图，如果想用缩略库的话，可以使用生成缩略库的函数类库。</p>
<pre class="brush: php; title: ; notranslate">
			&lt;?php
				$regex = &quot;/\&lt;img.+src\s*=\s*\&quot;([^\&quot;]*)\&quot;[^\&gt;]*\&gt;/&quot;;
				preg_match ($regex, $this-&gt;item-&gt;introtext, $matches);
				$images = (count($matches)) ? $matches : array();
				if (count($images)){
				$mainImage = $images[1];
				$thumbnail = $images[1];
			} else {
				$thumbnail = '';
				$mainImage = '';
			}
			//if ($mainImage=='') $mainImage='/images/defaultpic.gif';
			if ($mainImage) {
			?&gt;
			&lt;a title=&quot;&lt;?php echo $this-&gt;escape($this-&gt;item-&gt;title); ?&gt;&quot; href=&quot;&lt;?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this-&gt;item-&gt;slug, $this-&gt;item-&gt;catid)); ?&gt;&quot;&gt;
			&lt;img src=&quot;&lt;?php echo $mainImage; ?&gt;&quot; alt=&quot;&lt;?php echo $this-&gt;escape($this-&gt;item-&gt;title); ?&gt;&quot; class=&quot;thumbnail alignright&quot;&gt;
			&lt;/a&gt;
			&lt;?php } ?&gt;
				&lt;?php echo '&lt;p&gt;'.$this-&gt;item-&gt;metadesc.'...&lt;/p&gt;'; ?&gt;
</pre>
<p>$this-&gt;item-&gt;metadesc是用于 meta 描述来输出摘要。</p>
<p>如果不想手动填写meta 描述（其实还是填的好，利用SEO），可以在模板里用下面的代码代替。注意：Joomla用的是utf-8，截断utf-8的字符需要mbstring库中的mb_substr函数。</p>
<pre class="brush: php; title: ; notranslate">
echo '&lt;p&gt;'.mb_substr(strip_tags($this-&gt;item-&gt;introtext),0,100,'UTF-8').'...&lt;/p&gt;';
</pre>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li><li><a href="http://imvoo.com/archives/567.html" title="Joomla!1.6.5升级到1.7.0">Joomla!1.6.5升级到1.7.0</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/552.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Phoca GuestbookV2.0.1留言本插件 中文版</title>
		<link>http://imvoo.com/archives/550.html</link>
		<comments>http://imvoo.com/archives/550.html#comments</comments>
		<pubDate>Fri, 07 Jan 2011 03:24:20 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[phoca guestbook]]></category>
		<category><![CDATA[下载]]></category>
		<category><![CDATA[插件]]></category>
		<category><![CDATA[留言本]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=550</guid>
		<description><![CDATA[Phoca Guestbook留言本是Joomla平台的留言本组件，现在Joomla1.6正式版即将发布，该留言本也放出了beta版本，目前是beta3。]]></description>
			<content:encoded><![CDATA[<p>Phoca Guestbook留言本是Joomla平台的留言本组件，当前版本2.0.1。</p>
<p><span id="more-550"></span></p>
<p>该留言本的特点：</p>
<ol>
<li>可创建多个留言本；</li>
<li>可选择是否只允许注册会员留言，还是任何人均可留言；</li>
<li>可选择是否要求提供 email 和 网站；</li>
<li>可选择是否启用验证码（有图片验证码、算术验证码等形式可选）；</li>
<li>可选是否只针对游客启用验证码；</li>
<li>可选是否检查用户身份，即：游客留言时不允许使用已被注册会员使用的用户名和 email；</li>
<li>可指定禁用的敏感词；</li>
<li>可指定屏蔽的 IP 地址；</li>
<li>可选是否允许在留言内容中显示超链接（URL Links），以及每条留言中允许显示的链接数量；</li>
<li>可给游客预定义名称，例如”游客“；</li>
<li>没有回复留言功能</li>
</ol>
<p>2011年1月18日更新，修正哪些翻译。</p>
<p>2011年8月3日，更新2.0.1</p>
<p>中文版下载：<a href="http://dl.dbank.com/c0azil6zst">http://dl.dbank.com/c0azil6zst</a></p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/540.html" title="Joomla1.6 拼音别名（Pinyin Alias）插件 Plugin">Joomla1.6 拼音别名（Pinyin Alias）插件 Plugin</a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/550.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Everbox邀请链接两个</title>
		<link>http://imvoo.com/archives/548.html</link>
		<comments>http://imvoo.com/archives/548.html#comments</comments>
		<pubDate>Thu, 06 Jan 2011 01:49:32 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[业界动态]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=548</guid>
		<description><![CDATA[http://account.everbox.com/invite/YdbRTqV4qSIxNFBEoNvZtEUyQTOKakOSa6dA5iDA http://account.everbox.com/invite/hYPmD016qqCpXOXuV11e9k9Q5suNMY36jJQzrFgB 暂无相关文章安装了Ubuntu后，连接经常被重置的解决办法phpcms 2008 文章自动审核和内容页二级栏目列表听说是google最赚钱的关健字！Android机皇联想Lephone让live mail 从msn messenger启动！]]></description>
			<content:encoded><![CDATA[<p>http://account.everbox.com/invite/YdbRTqV4qSIxNFBEoNvZtEUyQTOKakOSa6dA5iDA</p>
<p>http://account.everbox.com/invite/hYPmD016qqCpXOXuV11e9k9Q5suNMY36jJQzrFgB</p>
<h3  class="related_post_title">暂无相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/201.html" title="phpcms 2008 _area 表（全国地区表）下载">phpcms 2008 _area 表（全国地区表）下载</a></li><li><a href="http://imvoo.com/archives/243.html" title="建站选utf-8还是GB2312(GBK)？">建站选utf-8还是GB2312(GBK)？</a></li><li><a href="http://imvoo.com/archives/222.html" title="2009年工资收入调查">2009年工资收入调查</a></li><li><a href="http://imvoo.com/archives/317.html" title="万网停止解析电玩巴士域名 新网站域名临时启用">万网停止解析电玩巴士域名 新网站域名临时启用</a></li><li><a href="http://imvoo.com/archives/49.html" title="献给即将出生的宝宝">献给即将出生的宝宝</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/548.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla判断是否首页</title>
		<link>http://imvoo.com/archives/543.html</link>
		<comments>http://imvoo.com/archives/543.html#comments</comments>
		<pubDate>Wed, 29 Dec 2010 01:56:07 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[首页]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=543</guid>
		<description><![CDATA[Joomla默认的布局都不是很适合国内的CMS布局，用Joomla设计一个符合国人习惯的首页，首先要要判断是否是首页，才能在index.php里定制首页代码。]]></description>
			<content:encoded><![CDATA[<p>Joomla默认的布局都不是很适合国内的CMS布局，用Joomla设计一个符合国人习惯的首页，首先要要判断是否是首页，才能在index.php里定制首页代码。</p>
<p><span id="more-543"></span>下面是在网上搜集的一些判断是否是首页的代码：</p>
<p>下面这段只能在1.5版本应用，1.6版已经取消了frontpage</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
if($option != &quot;&quot; &amp;&amp; $option != &quot;com_frontpage&quot;){
}
?&gt;
</pre>
<p>下面这段可以应用在1.5+</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
$menu = &amp; JSite::getMenu();
if ($menu-&gt;getActive() == $menu-&gt;getDefault()) {
        echo 'This is the home page';
}
?&gt;
</pre>
<p>还有一个</p>
<pre class="brush: php; title: ; notranslate">
function isHome()
{
   if (JURI::current() == JURI::base()) return true;
   return false;
}
</pre>
<p>以上引用自：http://forum.joomla.org/viewtopic.php?f=304&amp;t=428965</p>
<p>我在最近的一个Joomla站里，用的是个人方法，因为我的一个幻灯片只在首页出现，那么，我只判断是否有该幻灯片，即知是不是在首页。</p>
<pre class="brush: php; title: ; notranslate">
$isFrontPage	= $this-&gt;countModules('index-newsflash');
</pre>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li><li><a href="http://imvoo.com/archives/567.html" title="Joomla!1.6.5升级到1.7.0">Joomla!1.6.5升级到1.7.0</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/543.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla1.6 拼音别名（Pinyin Alias）插件 Plugin</title>
		<link>http://imvoo.com/archives/540.html</link>
		<comments>http://imvoo.com/archives/540.html#comments</comments>
		<pubDate>Thu, 23 Dec 2010 02:08:17 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[拼音别名]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=540</guid>
		<description><![CDATA[现在正在基于1.6版Joomla做一个站，中文站能够用到拼音别名。现在网上的拼音别名插件还是基于1.5版的。]]></description>
			<content:encoded><![CDATA[<p><a href="http://imvoo.com/archives/587.html">本文已经有更新版本。</a>Joomla1.6现在已经到RC1了，不出意外的话，2011年1月10日就会出正式版，现在正在基于1.6版Joomla做一个站，中文站能够用到拼音别名。现在网上的拼音别名插件还是基于1.5版的。 <span id="more-540"></span> 本插件基于<a href="http://www.tzpsky.com/zui-xin-xiu-zheng-ban-wordpress-zhong-wen-biao-ti-zhuan-huan-pin-yin-cha-jian/" target="_blank">最新修正版WordPress中文标题转换拼音插件</a>所写的Wordpress拼音别名类。</p>
<h2>插件简介：</h2>
<p>将Joomla1.6文章别名转移成拼音别名，并用-符号隔开，兼容标题中出现的英文单词。 如：Joomla文章别名===&gt;joomla-wen-zhang-bie-ming 插件生效需将Global Configuration-&gt;Unicode Aliases设置为No。 插件选项：标题长度，默认为20，即需要截取标题的长度用于转移成拼音。设置为0则全部转换成拼音。 因为用到<a href="http://php.net/manual/en/function.mb-convert-encoding.php" target="_blank">mb_convert_encoding()</a>函数进行编码转移，所以需要服务器php支持MBString库，是否支持，可在phpinfo查看。 已知问题： 无论是utf-8编码的繁体字还是big5都是不支持的，utf-8编码的繁体字会有错误，big5编码的会出现空白。</p>
<h2>版权协议：</h2>
<p>此插件基于GPL的许可协议的自由软件。插件的使用者可以： 以任何目的运行此程序的自由； 以学习程序工作机理为目的，对程序进行修改的自由； 再发行复制件的自由； 改进此程序，并公开发布改进的自由。</p>
<h2>下载：</h2>
<p><a href="http://imvoo.com/wp-content/uploads/2010/12/pinyinalias.zip">Pinyinalias for Joomla1.6</a></p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/550.html" title="Phoca GuestbookV2.0.1留言本插件 中文版 ">Phoca GuestbookV2.0.1留言本插件 中文版 </a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/540.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Vps自动备份web和mysql数据库脚本</title>
		<link>http://imvoo.com/archives/533.html</link>
		<comments>http://imvoo.com/archives/533.html#comments</comments>
		<pubDate>Thu, 28 Oct 2010 03:26:26 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网络日志]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[备份]]></category>
		<category><![CDATA[脚本]]></category>

		<guid isPermaLink="false">http://imvoo.com/archives/533.html</guid>
		<description><![CDATA[为服务安装上了Dropbox，设定为每天4:00-6:00 开启同步服务。在之前运行两个脚本，自动备份web文件夹和mysql数据库。]]></description>
			<content:encoded><![CDATA[<p>用Vps什么事都要自己费心，备份也是。像Linode里的备份服务是要收费的，一个月是5美元。与其花这5美元，不如自己丰衣足食。为服务安装上了Dropbox，设定为每天4:00-6:00 开启同步服务。在之前运行两个脚本，自动备份web文件夹和mysql数据库。</p>
<p>两个脚本都是备份文件到/root/Dropbox/backup目录里，并自动删除10天前的备份。web备份是每周行一次，删除30天前的备份。</p>
<p><span id="more-533"></span></p>
<h3>一、备份WEB文件夹</h3>
<p>1、备份/home/users/public_html目录</p>
<p>2、修改crontab为每周第一天3：22时运行</p>
<pre class="brush: bash; title: ; notranslate">22 3 * * 0 root run-parts /etc/cron.weekly</pre>
<p>3、复制脚本到/etc/cron.weekly目录</p>
<p>4、修改权限</p>
<pre class="brush: bash; title: ; notranslate">
chmod 0755 /etc/cron.weekly/webbackup.sh
</pre>
<p>5、脚本如下</p>
<pre class="brush: bash; title: ; notranslate">
#!/bin/sh

filename=`date +%Y%m%d`

backup_dir=&quot;/root/Dropbox/backup/web&quot;

#delete all files 10 days ago

find $backup_dir -mtime +30 -name &quot;*&quot; -exec rm -rf {} \;

#each user you want backup

users=&quot;baidu sina&quot;

for user in ${users}; do

tar zcvf $backup_dir/$user$filename.tar.gz /home/$user/public_html

done
</pre>
<p>6、注意filename那句不是单引号，在tab键上方</p>
<p>7、要备份的用户的public_html目录，就把该用户填入users</p>
<h3>二、Mysql数据库每日备份</h3>
<p>1、为了安全，新建用户backup，用强密码（自动生成即可），全局权限为select,lock tables</p>
<p>2、每日3：00开始执行，修改crontab</p>
<p>3、复制脚本到/etc/cron.daily</p>
<p>4、修改权限</p>
<p>5、脚本内容</p>
<pre class="brush: bash; title: ; notranslate">

#!/bin/sh

dbuser=&quot;backup&quot;

dbpassword=&quot;youpassword&quot;

datas=&quot;db1 db2 db3&quot;

filename=`date +%Y%m%d`

bin_dir=&quot;/usr/local/mysql/bin&quot;

backup_dir=&quot;/root/Dropbox/backup/mysql&quot;

#delete all files 10 days ago

find $backup_dir -mtime +10 -name &quot;*&quot; -exec rm -rf {} \;

#Do each database backup

for data in ${datas}; do

    $bin_dir/mysqldump --opt -u$dbuser -p$dbpassword $data | gzip &gt; $backup_dir/$data$filename.sql.gz

done
</pre>
<p>6、同上一个第6条</p>
<p>7、要备份的数据库填入datas</p>
<h3>三、感受</h3>
<p>因为都在美国的原因，备份到dropbox的速度很快，一个10M的文件备份到dropbox，从开启dropbox服务，马上刷新dropbox的网站就可以看到了。</p>
<p>如果流量很紧张的话，也可以设定dropbox为每周运行，或每5天运行等。应该是需要设定要备份周期，或者结合起来使用。</p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/527.html" title="免费使用一年的Amazon云计算主机">免费使用一年的Amazon云计算主机</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/533.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ssh auth认证方式连接Linux服务器</title>
		<link>http://imvoo.com/archives/528.html</link>
		<comments>http://imvoo.com/archives/528.html#comments</comments>
		<pubDate>Tue, 26 Oct 2010 03:00:17 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网络日志]]></category>
		<category><![CDATA[linode]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=528</guid>
		<description><![CDATA[介绍下在Windows和Linux分别用SSH auth认证方式连接Linux服务器的方法。]]></description>
			<content:encoded><![CDATA[<p>介绍下在Windows和Linux分别用SSH auth认证方式连接Linux服务器的方法。为了更安全，请把服务器上的密码认证方式关掉吧，当然，在关掉之前，请确认能用密钥认证连接上去，不然的话，就悲剧了。解决方法也是有的，如Linode的Ajax Console，可以输入密码进入，这就要求应该把Linode的用户名和密码也设置的不容易猜到。在密码设置安全的情况下，其它的安全工作就交给Linode吧。而VPS的安全工作还是需要我们自己做的。<span id="more-528"></span></p>
<h2>一、sshd配置文件</h2>
<pre class="brush: bash; title: ; notranslate">

vim /etc/ssh/sshd_config

Protocol 2

ServerKeyBits 1024

PermitRootLogin no

PasswordAuthentication no

PermitEmptyPasswords no
</pre>
<p>AuthorizedKeysFile      .ssh/authorized_keys这句，是为什么要把id_rsa.pub改成这个文件名的原因，可以改成其它的。</p>
<h2>二、两种生成密钥的方式</h2>
<p>在下面全程处理其间，用密码认证登陆的窗口不要关闭。</p>
<h3>1、在Linux服务器下生成密钥</h3>
<pre class="brush: bash; title: ; notranslate">

ssh-keygen -t rsa
</pre>
<p>检查一下是否生成</p>
<pre class="brush: bash; title: ; notranslate">

cd ~/.ssh/

ls
</pre>
<p>正常情况下有两文件，id_rsa和id_rsa.pub。其中id_rsa.pub是公钥文件，需要放在服务器上的。id_rsa是私钥，下载下来备用。</p>
<p>用puttykeygen.exe程序，导入id_rsa，然后生成putty可以使用的私钥。</p>
<h3>2、在Putty里生成</h3>
<p>打开Puttykengen.exe程序，点击生成，然后在空白处移动鼠标，生成密钥。生成成功之后，在一文本框里的文件直接得到到服务器上。</p>
<pre class="brush: bash; title: ; notranslate">

vim ~/.ssh/authorized_keys
</pre>
<p>如果复制到记事本，然后再粘贴的话，格式会改变。保存退出。</p>
<p>点保存私钥，把生成的ppk文件放在putty目录。</p>
<p>为了能在Linux下用该私钥，还请在菜单 转换-&gt;导出openssh密钥，文件名id_rsa。</p>
<h2>三、分别在Windows和Linux下连接</h2>
<h3><span style="font-weight: normal;">还是不要关闭密码连接的putty客户端。</span></h3>
<h3>1、Windows连接</h3>
<p>个人感觉，在Windows里最好用的还是Putty，建议下载Putty中文版，还是便携的。<a href="http://code.google.com/p/puttycn/" target="_blank">点击这里下载</a>。</p>
<p>用Putty，在连接connect-&gt;ssh-&gt;认证auth里输入文件名.ppk即可。（要便携）</p>
<h3>2、Linux连接</h3>
<p>把下载的id_rsa文件，放到~/.ssh/目录下，然后更改权限为400。只要不被组成员和其它成员有权限即可。</p>
<p>连接用终端</p>
<pre class="brush: bash; title: ; notranslate">

ssh 用户名@服务器
</pre>
<p>如果你的Linux与服务器的用户名相同，可以直接ssh 服务器。</p>
<h2>四、注意</h2>
<p>上面，一直在警示不要关闭密码连接的putty客户端。因为如果因为权限的问题或其它问题导致密钥方式连接不上，就悲剧了。如果出现问题：</p>
<pre class="brush: bash; title: ; notranslate">

cat /etc/log/secure
</pre>
<p>一般在客户端会提示：server-refused-our-key</p>
<p>查看到底是什么问题，一般来说是因为权限的原因，可以检查 /home/用户名，/home/用户名/.ssh，和/home/用户名/.ssh/authorized_keys看权限是否输入正确。</p>
<p>当然，在上面的ssh配置，可以把</p>
<pre class="brush: bash; title: ; notranslate">

PasswordAuthentication no

改成

#PasswordAuthentication no
</pre>
<p>后，一直到密钥认证可以连接为止，再修改回来，重启sshd服务。</p>
<blockquote><p>我的Linode推荐链接：<span style="font-family: monospace; line-height: normal; font-size: 12px; -webkit-border-horizontal-spacing: 16px; -webkit-border-vertical-spacing: 16px;"><a href="http://www.linode.com/?r=23088caa5bc161f4f9499c969075436e03465e6a" target="_blank">http://www.linode.com/?r=23088caa5bc161f4f9499c969075436e03465e6a</a></span></p></blockquote>
<h2><span style="font-weight: normal; font-size: 13px;">看看哪些用户可以在终端登陆，把不需要终端登陆的用户禁掉吧，即把 shell改成/sbin/nologin，需要登陆的用户就改成ssh密钥认证。</span></h2>
<p>下面是我的一Vps日志信息，多么的严重啊，正在玩猜猜猜呢。</p>
<pre class="brush: bash; title: ; notranslate">
cat /var/log/secure | grep &quot;Invalid&quot;
2010-10-24T13:49:53.049759+08:00 server sshd[997]: Invalid user admin from 72.46.126.20
2010-10-24T13:49:55.604691+08:00 server sshd[1004]: Invalid user test from 72.46.126.20
2010-10-24T13:50:00.922369+08:00 server sshd[1008]: Invalid user backup from 72.46.126.20
2010-10-24T13:50:03.911972+08:00 server sshd[1010]: Invalid user guest from 72.46.126.20
2010-10-26T04:22:49.634938+08:00 server sshd[9398]: Invalid user oracle from 59.151.119.180
2010-10-26T04:22:51.356569+08:00 server sshd[9400]: Invalid user test from 59.151.119.180
2010-10-26T04:22:53.077738+08:00 server sshd[9402]: Invalid user test from 59.151.119.180
2010-10-26T04:22:54.807528+08:00 server sshd[9404]: Invalid user test from 59.151.119.180
2010-10-26T04:22:56.536495+08:00 server sshd[9406]: Invalid user test from 59.151.119.180
2010-10-26T04:22:58.265747+08:00 server sshd[9408]: Invalid user test from 59.151.119.180
2010-10-26T04:22:59.987859+08:00 server sshd[9410]: Invalid user test from 59.151.119.180
2010-10-26T04:23:01.717557+08:00 server sshd[9412]: Invalid user test from 59.151.119.180
2010-10-26T04:23:03.918525+08:00 server sshd[9414]: Invalid user test from 59.151.119.180
2010-10-26T04:23:09.008367+08:00 server sshd[9416]: Invalid user user from 59.151.119.180
2010-10-26T04:23:10.730715+08:00 server sshd[9418]: Invalid user user from 59.151.119.180
2010-10-26T04:23:12.456085+08:00 server sshd[9420]: Invalid user user from 59.151.119.180
2010-10-26T04:23:14.185438+08:00 server sshd[9422]: Invalid user user from 59.151.119.180
2010-10-26T04:23:15.914612+08:00 server sshd[9424]: Invalid user oracle from 59.151.119.180
2010-10-26T04:23:17.644185+08:00 server sshd[9426]: Invalid user oracle from 59.151.119.180
2010-10-26T04:23:19.371199+08:00 server sshd[9428]: Invalid user oracle from 59.151.119.180
2010-10-26T05:38:02.172549+08:00 server sshd[10168]: Invalid user dasusr1 from 118.70.253.8
2010-10-26T05:38:03.689410+08:00 server sshd[10170]: Invalid user install from 118.70.253.8
</pre>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/318.html" title="比N97强大的新机麻雀Sparrow曝光">比N97强大的新机麻雀Sparrow曝光</a></li><li><a href="http://imvoo.com/archives/204.html" title="Ubuntu 8.10即将发布，已有下载">Ubuntu 8.10即将发布，已有下载</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/528.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>免费使用一年的Amazon云计算主机</title>
		<link>http://imvoo.com/archives/527.html</link>
		<comments>http://imvoo.com/archives/527.html#comments</comments>
		<pubDate>Mon, 25 Oct 2010 13:34:54 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[业界动态]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[云计算]]></category>

		<guid isPermaLink="false">http://imvoo.com/archives/527.html</guid>
		<description><![CDATA[刚刚搜索免费Vps时搜到了一则好消息，Amazon（将于2010年11月1日正式推出免费使用一年的AWS云计算平台。从配置看还不错，就是流量太低了。要求绑定信用卡，超出的流量是要付费的。 什么是AWS Amazon Web Services。 下面摘自AWS Free Usage Tier，看得懂的写到下面，可看英文原文。 AWs免费使用方法（每月）： 1、750小时Amazon EC2的使用时间（613M内存，支持32位、64位平台）。按：换成天就是31.25天，足够一个月使用了。 2、750小时弹性负载均衡（Elastic Load Balancer）+15G数据处理。 3、10G存储Amazon Elastic Block Storage。 4、5G<a href="http://imvoo.com/archives/527.html" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>刚刚搜索免费Vps时搜到了一则好消息，Amazon（将于2010年11月1日正式推出免费使用一年的AWS云计算平台。从配置看还不错，就是流量太低了。要求绑定信用卡，超出的流量是要付费的。</p>
<p>  <span id="more-527"></span><br />
<h2>什么是AWS</h2>
<p>Amazon Web Services。</p>
<p>下面摘自<a href="http://aws.amazon.com/free/" target="_blank">AWS Free Usage Tier</a>，看得懂的写到下面，可看英文原文。</p>
<p>AWs免费使用方法（每月）：</p>
<p>1、750小时Amazon EC2的使用时间（613M内存，支持32位、64位平台）。按：换成天就是31.25天，足够一个月使用了。</p>
<p>2、750小时弹性负载均衡（Elastic Load Balancer）+15G数据处理。</p>
<p>3、10G存储Amazon Elastic Block Storage。</p>
<p>4、5G Amazon S3 storage存储。</p>
<p>5、30G传输（15G出，15G入，机房内的传输不计流量）</p>
<p>另AWS控制面板是免费的。</p>
<p>真纠结，不知道是否能如VPS一样使用呢？现在的理解应该就像Google App Engine一样吧。</p>
<h2>Amazon EC2介绍</h2>
<p>AWS是一个云计算平台，和VPS是有区别的，虽然他是基于XEN，在网上找了找<a href="http://www.cnblogs.com/suyang/archive/2010/01/25/1655519.html" target="_blank">Amazon EC2的介绍</a>，大家看看吧。看来想当作VPS使用是不可能了。本来还想看看能不能安装个vpn上去的。</p>
<blockquote><p>Amazon EC2 是一个Web服务，它允许用户请求具有各种资源（CPU，磁盘，内存等）的虚拟主机。用户只需按使用的计算时间付费，其它事情全部交给Amazon处理。</p>
<p>这些实例（Amazon Machine Image, AMI）基于Linux，可以运行您所需要的任何应用程序和软件。在从Amazon租借主机之后，可以像对待物理主机一样使用一般的SSH工具设置连接和维护主机。</p>
<p>部署Hadoop云计算框架的最好方法是把它全部部署在AMI上，这样可以利用云资源，不需要考虑计算能力，带宽，存储等问题。</p>
</blockquote>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/533.html" title="Vps自动备份web和mysql数据库脚本">Vps自动备份web和mysql数据库脚本</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/527.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LNMP下WordPress+WP Super Cache支持Mobile的Rewrite规则</title>
		<link>http://imvoo.com/archives/521.html</link>
		<comments>http://imvoo.com/archives/521.html#comments</comments>
		<pubDate>Sat, 23 Oct 2010 02:34:05 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[lnmp]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=521</guid>
		<description><![CDATA[大部分PHP程序对于Rewrite规划都是针对Apache的，Apache的规划可以写在根目录.htaccess里，很容易被程序更新。Nginx的规划是写在配置文件里的，不能被程序直接访问到。]]></description>
			<content:encoded><![CDATA[<p>LNMP=Linux+Nginx+Mysql+php，国内大部分是这样写的，国外也有写成LEMP的，其中E代表Nginx(egine X)。大部分PHP程序对于Rewrite规划都是针对Apache的，Apache的规划可以写在根目录.htaccess里，很容易被程序更新。Nginx的规划是写在配置文件里的，不能被程序直接访问到。</p>
<p><span id="more-521"></span></p>
<p>开启WP Super Cache后，更新.htaccess，把更新后的内容记录下来。</p>
<p>原规则不再此列出。</p>
<p>翻译成nginx支持的就是这样的，<a href="http://forum.slicehost.com/comments.php?DiscussionID=2087" target="_blank">nginx rewrite rules for WordPress + WP Super Cache</a></p>
<pre class="brush: php; title: ; notranslate">
location / {
 # enable search for precompressed files ending in  .gz
 # nginx needs to be complied using  -with-http_gzip_static_module
 # for this to work, comment out if using  nginx from aptitude
 gzip_static on;

# if the requested file exists, return it immediately
 if (-f  $request_filename) {
 break;
 }
 if ($HTTP_USER_AGENT  ~* '(2.0\  MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\  Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\  Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\  OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\  CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\  Obigo|LGE\ VX|webOS|Nokia5800)') {
 rewrite . /index.php  last;
 }
 if ($HTTP_user_agent ~* '(2.0\  MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\  Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\  Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\  OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\  CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\  Obigo|LGE\ VX|webOS|Nokia5800)') {
 rewrite . /index.php  last;
 }
 set $supercache_file '';
 set $supercache_uri  $request_uri;

if ($request_method = POST) {
 set $supercache_uri  '';
 }

# Using pretty permalinks, so bypass the cache for any query  string
 if ($query_string) {
 set $supercache_uri '';
 }

if ($http_cookie ~* &quot;comment_author_|wordpress|wp-postpass_&quot; )  {
 set $supercache_uri '';
 }

# if we haven't bypassed the cache, specify our supercache  file
 if ($supercache_uri ~ ^(.+)$) {
 set  $supercache_file  /wp-content/cache/supercache/$http_host/$1index.html;
 }

# only rewrite to the supercache file if it actually exists
 if  (-f $document_root$supercache_file) {
 rewrite ^(.*)$  $supercache_file break;
 }

# all other requests go to WordPress
 if (!-e  $request_filename) {
 rewrite . /index.php last;
 }
}
</pre>
<p>测试，发现手机访问正常。</p>
<p>2010年10月24日更新：</p>
<p>在wp-supercache里，选择Use PHP to serve cache files后，可以省略以上的规则，只添加</p>
<pre class="brush: php; title: ; notranslate">

location{
    if (!-e  $request_filename) {
        rewrite . /index.php last;
        }
    }
</pre>
<p>这么一个规则就可以了</p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/465.html" title="WordPress插件推荐：侧边栏逻辑判断Widget Logic">WordPress插件推荐：侧边栏逻辑判断Widget Logic</a></li><li><a href="http://imvoo.com/archives/444.html" title="CentOS下LNMP环境的建立">CentOS下LNMP环境的建立</a></li><li><a href="http://imvoo.com/archives/411.html" title="Nginx下Wordpress的WP Super Cache不能写文件的问题">Nginx下Wordpress的WP Super Cache不能写文件的问题</a></li><li><a href="http://imvoo.com/archives/355.html" title="博客又一次被301转向了">博客又一次被301转向了</a></li><li><a href="http://imvoo.com/archives/335.html" title="从本博客的搜索引擎收录历史看网站优化">从本博客的搜索引擎收录历史看网站优化</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/521.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>腾讯微博分享快捷方式</title>
		<link>http://imvoo.com/archives/517.html</link>
		<comments>http://imvoo.com/archives/517.html#comments</comments>
		<pubDate>Fri, 22 Oct 2010 16:20:10 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[软件应用]]></category>
		<category><![CDATA[腾讯微博]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=517</guid>
		<description><![CDATA[功能介绍：把正在看的新闻，页面分享到腾讯微博。用过Google订阅的都知道，里面有个酷功能，把下面的这个快捷方式拉到书签栏就可以使用了。]]></description>
			<content:encoded><![CDATA[<p>功能介绍：把正在看的新闻，页面分享到腾讯微博。用过Google订阅的都知道，里面有个酷功能，把下面的这个快捷方式拉到书签栏就可以使用了。</p>
<p><a style="background-color: #fc6; padding: 5px;" href="javascript:(function(){window.open('http://v.t.qq.com/share/share.php?title='+encodeURIComponent(document.title)+'&amp;url='+encodeURIComponent(location.href),'_blank','width=680,height=480');})()" target="_blank">分享到腾讯微博</a></p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/482.html" title="有腾讯微博邀请码2枚（已经发完）">有腾讯微博邀请码2枚（已经发完）</a></li><li><a href="http://imvoo.com/archives/474.html" title="得到腾讯微博邀请试用">得到腾讯微博邀请试用</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/517.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
