<?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>Bernie Yu &#187; bug tracking</title>
	<atom:link href="http://bernieyu.com/tag/bug-tracking/feed/" rel="self" type="application/rss+xml" />
	<link>http://bernieyu.com</link>
	<description>复刻生活</description>
	<lastBuildDate>Tue, 17 May 2016 09:03:15 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.38</generator>
	<item>
		<title>在群晖NAS上搭建MantisBT Bug跟踪系统</title>
		<link>http://bernieyu.com/2015/07/install-mantis-bug-tracking-on-synology-nas/</link>
		<comments>http://bernieyu.com/2015/07/install-mantis-bug-tracking-on-synology-nas/#comments</comments>
		<pubDate>Fri, 10 Jul 2015 04:01:48 +0000</pubDate>
		<dc:creator><![CDATA[Bernie Yu]]></dc:creator>
				<category><![CDATA[IT技术]]></category>
		<category><![CDATA[Synology]]></category>
		<category><![CDATA[bug tracking]]></category>
		<category><![CDATA[mantis]]></category>

		<guid isPermaLink="false">http://bernieyu.com/?p=256</guid>
		<description><![CDATA[启用WEB服务 进入群晖的管理后台，打开控制页面，在里面打开WEB服务 安装MariaDB数据库，配置好roo ... <a class="more-link" href="http://bernieyu.com/2015/07/install-mantis-bug-tracking-on-synology-nas/">　　>>阅读全文&#60;&#60;</a>]]></description>
				<content:encoded><![CDATA[<ol>
<li>启用WEB服务<br />
进入群晖的管理后台，打开控制页面，在里面打开WEB服务<br />
<img class="alignnone size-full wp-image-257" src="http://bernieyu.com/wp-content/uploads/2015/07/201506261549467.png" alt="201506261549467" width="541" height="433" /></li>
<li>安装MariaDB数据库，配置好root账户的密码</li>
<li>安装MantisBT<br />
打开套件中心，找到MantisBT，进行安装。安装过程中要输入Mysql (MariaDB)的root账号和密码，安装过程中会自动创建MantisBT所需要的库表<br />
<img class="alignnone size-full wp-image-258" src="http://bernieyu.com/wp-content/uploads/2015/07/20150710110313.png" alt="20150710110313" width="617" height="437" /></li>
<li>配置MantisBT
<ul>
<li>打开http://synology_address/mantisbt，默认用户名：adminstrator，初始密码：root</li>
<li>现在数据库是用root登录的，为了数据库安全，在数据库里新建mantis用户，仅拥有对mantis库的权限。然后修改config_inc.php:
<pre>$g_hostname = 'localhost';
$g_db_type = 'mysql';
$g_database_name = 'mantis';
$g_db_username = 'mantis';
$g_db_password = 'mantis';
</pre>
</li>
<li>修改默认语言为简体中文：在config_inc.php中添加：
<pre>$g_default_language= 'chinese_simplified';</pre>
</li>
<li>mantis默认新用户都是要邮件激活的，因此还需要添加邮件支持。修改config_defaults_inc.php，把发信人修改为真正使用的发件邮箱地址（有些邮箱服务器会校验发件人地址和真实发件地址，不匹配有可能造成发信失败）
<pre>$g_administrator_email	= 'mantis@host.com';
$g_webmaster_email	= 'mantis@host.com';
$g_from_email			= 'mantis@host.com';
$g_return_path_email	= 'mantis@host.com';</pre>
<p>继续修改发件的smtp信息</p>
<pre>$g_phpMailer_method		= PHPMAILER_METHOD_SMTP;
$g_smtp_host			= 'smtp.exmail.qq.com';
$g_smtp_username = 'mantis@host.com';
$g_smtp_password = 'password';
$g_smtp_connection_mode = 'ssl';
$g_smtp_port = 465;</pre>
</li>
<li>登录到mantis里，新建管理员用户。然后以新建用户登录后，就可以禁用administrator，以保证安全。</li>
<li>Tips:
<ul>
<li>在library\phpmailer下是邮件发送组件，可以新建一个mailtest.php，然后在浏览器打开这个页面测试邮件发送是否正常：
<pre>&lt;?php
/**
 * @author [pooy] &lt;[pooy@pooy.net]&gt;
 * @blog  http://www.pooy.net
 */
require 'class.phpmailer.php';
 
$mail = new PHPMailer;
$mail-&gt;SMTPDebug = 1;
$mail-&gt;IsSMTP();                                      // Set mailer to use SMTP
 
$mail-&gt;Host = 'smtp.exmail.qq.com';  // Specify main and backup server
$mail-&gt;SMTPAuth = true;                               // Enable SMTP authentication
$mail-&gt;Username = 'mantis@host.com';                            // SMTP username
$mail-&gt;Port = 465;
$mail-&gt;Password = 'password';                           // SMTP password
$mail-&gt;SMTPSecure = 'ssl';                            // Enable encryption, 'ssl' also accepted
$mail-&gt;From = 'mantis@host.com';
 
$mail-&gt;FromName = 'Mailer Testing';
$mail-&gt;AddAddress('reciver@host.com');   
$mail-&gt;WordWrap = 50;                                 // Set word wrap to 50 characters
$mail-&gt;IsHTML(true);                                  // Set email format to HTML
 
$mail-&gt;Subject = 'Here is the subject';
$mail-&gt;Body    = 'This is the HTML message body &lt;b&gt;in bold!&lt;/b&gt;';
$mail-&gt;AltBody = 'This is the body in plain text for non-HTML mail clients';
 
if(!$mail-&gt;Send()) {
   echo 'Message could not be sent.';
   echo 'Mailer Error: ' . $mail-&gt;ErrorInfo;
   exit;
}
 
echo 'Message has been sent';
// To load the Chinese version
$mail-&gt;SetLanguage('cn', '/path_to_mantisbt/library/phpmailer/language');
?&gt;</pre>
</li>
<li>在scripts下的send_eamils.php，可以在控制台执行，测试在config_defaults_inc.php里的邮件配置是否能正常发送邮件
<pre>php -q /path_to_mantisbt/scripts/send_emails.php</pre>
</li>
</ul>
</li>
</ul>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://bernieyu.com/2015/07/install-mantis-bug-tracking-on-synology-nas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
