<?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>My Life, My Love! &#187; Dreamhost</title>
	<atom:link href="http://gfrog.net/tag/dreamhost/feed/" rel="self" type="application/rss+xml" />
	<link>http://gfrog.net</link>
	<description>指点江山 激昂文字 修身隆德 自然自我</description>
	<lastBuildDate>Wed, 08 Sep 2010 17:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>在Dreamhost主机上安装bugzilla</title>
		<link>http://gfrog.net/2008/03/install-bugzilla-in-dreamhost/</link>
		<comments>http://gfrog.net/2008/03/install-bugzilla-in-dreamhost/#comments</comments>
		<pubDate>Fri, 21 Mar 2008 16:23:55 +0000</pubDate>
		<dc:creator>gfrog</dc:creator>
				<category><![CDATA[Dreamhost]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[bugzilla]]></category>

		<guid isPermaLink="false">http://gfrog.net/2008/03/install-bugzilla-in-dreamhost/</guid>
		<description><![CDATA[<p><a href="http://www.bugzilla.org/">bugzilla</a>是<a href="http://www.mozilla.org/">mozilla</a>一个很好的开源bug管理软件，青蛙准备在glinux的开发过程中用它来管理发现的bug。<br />
但是dreamhost上没有bugzilla的自动安装功能，青蛙按照<a href="http://wiki.dreamhost.com/Bugzilla#Installing_Bugzilla">dreamhost的wiki上面介绍的方法</a>安装时，<br />
又有很多perl模块没有，而且在dreamhost的主机上也没有权限安装这些perl模块。所以，青蛙决定先在主机上自己搞一个perl。</p>
<p>perl的安装方法很简单，<a href="http://wiki.dreamhost.com/Perl#Path_to_the_Perl_interpreter">dreamhost的wiki也有介绍</a>。<br />
青蛙选择的是perl5.8.8，因为wiki上头说有一个针对dreamhost环境的补丁要打<br />
（补丁文件在<a href="http://schwern.org/~schwern/src/dreamhost-5.8.8-cwd.patch">这里</a>下载）。<br />
打上补丁以后，执行：</p>
<blockquote><p>sh Configure -Dusethreads -Duselargefiles -Dccflags=-DDEBIAN \<br />
-Dcccdlflags=-fPIC -Darchname=i386-linux -Dprefix=~/apps \<br />
-Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Uusesfio \<br />
-Uusenm -Duseshrplib -Dvendorlib=/usr/share/perl5 \<br />
-Dvendorarch=/usr/lib/perl5 -Dvendorprefix=/usr -Uinstallusrbinperl -des</p></blockquote>
<p>其中Dprefix参数要设置为要安装perl的目录。<br />
config完毕就可以make \&amp;\&amp; make install了。</p>
<p>下面正式开始安装bugzilla，（青蛙的perl在~/apps/bin目录下，这个目录要换成你自己实际的目录哦），首先进入bugzilla的目录，执行：</p>
<blockquote><p>~/apps/bin/perl chechsetup.pl</p></blockquote>
<p>这个脚本会检查当前的perl环境，如果有缺少的模块，它会给出安装命令。<br />
例如，在青蛙的主机上，Email::Send、Email::MIME::Modifier就被提示安装。<br />
按照这个脚本给出的命令把必须的模块安装上，然后再次执行上面的命令，会在bugzilla目录下生成一个localconfig文件。</p>
<p>修改这个localconfig文件：</p>
<blockquote><p>$webservergroup = &#8220;apache&#8221;中的apache改为自己真实的组名称，这个组名字可以用groups命令查到。<br />
$db<em>host = &#8220;localhost&#8221; 修改为真实的mysql服务器地址。<br />
$db</em>name = &#8220;bugs&#8221; 修改为真实的数据库名。<br />
$db<em>user = &#8220;bugs&#8221; 修改为真实的用户名。<br />
$db</em>pass = &#8221; 修改为真实的密码。</p></blockquote>
<p>上面几项都改完后，重新执行checksetup.pl脚本。这时脚本会询问管理员邮箱地址，设置管理员密码等等动作。</p>
<p>因为dreamhost使用suexec方式运行的cgi脚本，所以每次执行完checksetup.pl以后，都要执行以下命令：</p>
<blockquote><p>for i in docs graphs images js skins; do find $i -type d -exec chmod o+rx {} \; ; done<br />
for i in jpg gif css js png html rdf xul; do find . -name *.$i -exec chmod o+r {} \; ; done<br />
find . -name .htaccess -exec chmod o+r {} \;<br />
chmod o+x . data data/webdot</p></blockquote>
<p>完成这些后，bugzilla就算是安装成功啦。可以先用浏览器访问下bugzilla的地址看看效果。</p>
<p>接下来说一下汉化的问题，汉化包可以在<a href="http://bugzilla-cn.googlecode.com/">这里</a>下载到，下载、解压以后，把cn文件夹复制到bugzilla目录里的template/目录就行啦。</p>
<hr /><small>
本作品采用
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/">知识共享署名-非商业性使用-相同方式共享 2.5 中国大陆许可协议</a>进行许可。&copy; 2008 <a href="http://gfrog.net">gfrog.net</a> <br /> a90255f136e145f6f38fa3fbbc88aef1 (38.107.191.92) )</small>]]></description>
		<wfw:commentRss>http://gfrog.net/2008/03/install-bugzilla-in-dreamhost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dreamhost主机上的用户数</title>
		<link>http://gfrog.net/2008/01/number-of-domains-on-one-dreamhost-server/</link>
		<comments>http://gfrog.net/2008/01/number-of-domains-on-one-dreamhost-server/#comments</comments>
		<pubDate>Sat, 19 Jan 2008 14:23:55 +0000</pubDate>
		<dc:creator>gfrog</dc:creator>
				<category><![CDATA[青蛙的杂烩]]></category>
		<category><![CDATA[Dreamhost]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[overselling]]></category>

		<guid isPermaLink="false">http://gfrog.net/2008/01/number-of-domains-on-one-dreamhost-server/</guid>
		<description><![CDATA[<p>ssh到我的DH主机上总感觉慢慢的，很不爽。</p>
<p>今天在这里发现了下面两条命令，可以分别查看主机上ssh的用户数和总用户数。</p>
<p>grep -i /home/ /etc/passwd | wc -l</p>
<p>grep -i /home/ /etc/passwd | grep /bin/.*sh$ | wc -l</p>
<p>查了一下，我的空间所在的这个主机上有108个ssh帐户，379个ftp/ssh用户。</p>
<p>vmstat看下负载，真的是够高。</p>
<p>procs &#8212;&#8212;&#8212;&#8211;memory&#8212;&#8212;&#8212;- &#8212;swap&#8211; &#8212;&#8211;io&#8212;- &#8211;system&#8211; &#8212;-cpu&#8212;-<br />
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa<br />
 0  0  41968 213368  66372 2950740    0    1     4     9    1     3 27  7 66  0</p>
<hr /><small>
本作品采用
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/">知识共享署名-非商业性使用-相同方式共享 2.5 中国大陆许可协议</a>进行许可。&copy; 2008 <a href="http://gfrog.net">gfrog.net</a> <br /> a90255f136e145f6f38fa3fbbc88aef1 (38.107.191.92) )</small>]]></description>
		<wfw:commentRss>http://gfrog.net/2008/01/number-of-domains-on-one-dreamhost-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>树大招风,Dreamhost又出事故</title>
		<link>http://gfrog.net/2007/06/dreamhost-hacked/</link>
		<comments>http://gfrog.net/2007/06/dreamhost-hacked/#comments</comments>
		<pubDate>Wed, 06 Jun 2007 12:30:36 +0000</pubDate>
		<dc:creator>gfrog</dc:creator>
				<category><![CDATA[IT特快]]></category>
		<category><![CDATA[Dreamhost]]></category>
		<category><![CDATA[Hack]]></category>

		<guid isPermaLink="false">http://gfrog.net/2007/06/%e6%a0%91%e5%a4%a7%e6%8b%9b%e9%a3%8edreamhost%e5%8f%88%e5%87%ba%e4%ba%8b%e6%95%85/</guid>
		<description><![CDATA[<img align="right" src="http://wiki.dreamhost.com/images/8/81/Logo-dreamhost.png" border="0" alt=""/><br />传说Dreamhost经常出事故,例如<a target="_blank" href="http://www.williamlong.info/archives/853.html">前阵子的DNS错误</a>.<br />这次,DH又出事了.而且问题好像还很严重:<a target="_blank" href="http://plod.popoever.com/archives/001260.html">3500个DreamHost 用户FTP 帐号被黑</a>.<br />前几天还想买DH的空间来着,结果<a target="_blank" href="http://gfrog.cn/my/article.asp?id=285">因为支付的问题作罢</a>.看来实在是树大招风,大服务商也有大服务商的问题.<br />不过这件事情还是给我们提了个醒,这次DH的密码似乎都是被暴力破解的.空间密码比较简单的要小心了,一定要给ftp设置一个强度比较高的密码,这样才可以有效的防止暴破.至于密码,可以用http://strongpasswordgenerator.com/来在线生成一个.
 <a href="http://gfrog.net/2007/06/dreamhost-hacked/">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://gfrog.net/2007/06/dreamhost-hacked/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>购买Dreamhost空间失败</title>
		<link>http://gfrog.net/2007/06/failed-to-buy-dreamhost-space/</link>
		<comments>http://gfrog.net/2007/06/failed-to-buy-dreamhost-space/#comments</comments>
		<pubDate>Sun, 03 Jun 2007 16:47:15 +0000</pubDate>
		<dc:creator>gfrog</dc:creator>
				<category><![CDATA[青蛙的杂烩]]></category>
		<category><![CDATA[Dreamhost]]></category>

		<guid isPermaLink="false">http://gfrog.net/2007/06/%e8%b4%ad%e4%b9%b0dreamhost%e7%a9%ba%e9%97%b4%e5%a4%b1%e8%b4%a5/</guid>
		<description><![CDATA[<img align="right" src="http://wiki.dreamhost.com/images/8/81/Logo-dreamhost.png" border="0" alt=""/><br />今天bloggerwave的20美刀广告费来了,我就寻思着用这笔费用买一个dreamhost的空间.如果用最高折扣号的话,就是22.4美刀.这样我自己再添2.4美刀就能拿到dh的空间了.<br />兴冲冲的去dh注册,结果到了付款那步.竟然不能用paypal支付.只能用google checkout或者支票支付.随即被郁闷到. <img src="images/smilies/Face_12.gif" border="0" style="margin:0px 0px -2px 0px" alt=""/>唉,看来跟dh空间无缘了.
 <a href="http://gfrog.net/2007/06/failed-to-buy-dreamhost-space/">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://gfrog.net/2007/06/failed-to-buy-dreamhost-space/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
