<?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/category/dreamhost/feed/" rel="self" type="application/rss+xml" />
	<link>http://gfrog.net</link>
	<description>指点江山 激昂文字 修身隆德 自然自我</description>
	<lastBuildDate>Sun, 05 Feb 2012 17:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</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" class="broken_link" rel="nofollow">这里</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 = “apache”中的apache改为自己真实的组名称，这个组名字可以用groups命令查到。<br />
$db<em>host = “localhost” 修改为真实的mysql服务器地址。<br />
$db</em>name = “bugs” 修改为真实的数据库名。<br />
$db<em>user = “bugs” 修改为真实的用户名。<br />
$db</em>pass = ” 修改为真实的密码。</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.179.220) )</small>]]></description>
		<wfw:commentRss>http://gfrog.net/2008/03/install-bugzilla-in-dreamhost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

