<?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>运达&#039;s  blog &#187; Mantis</title>
	<atom:link href="https://www.yunda51.com/?cat=44&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>https://www.yunda51.com</link>
	<description>运达的博客</description>
	<lastBuildDate>Wed, 12 Nov 2025 07:58:26 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0.19</generator>
	<item>
		<title>mantis安装步骤</title>
		<link>https://www.yunda51.com/?p=1240</link>
		<comments>https://www.yunda51.com/?p=1240#comments</comments>
		<pubDate>Wed, 26 Mar 2014 07:55:51 +0000</pubDate>
		<dc:creator><![CDATA[运达]]></dc:creator>
				<category><![CDATA[Mantis]]></category>
		<category><![CDATA[php技术]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[mantis]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wamp]]></category>

		<guid isPermaLink="false">http://www.yunda51.com/?p=1240</guid>
		<description><![CDATA[今天听朋友说的mantis,没事研究了一下,它类似于"禅道",内部使用比较好,它可以指派任务,监视人,任务进展<a href="https://www.yunda51.com/?p=1240" class="read-more">Continue Reading</a>]]></description>
				<content:encoded><![CDATA[<p>今天听朋友说的mantis,没事研究了一下,它类似于"禅道",内部使用比较好,它可以指派任务,监视人,任务进展,任务状态等!在网上搜素了一些资料感觉都太散乱,所以自己总结了一下! 废话就不多说了，安装步骤：<br />
<strong>一、准备工作(windows 平台)</strong><br />
下载Mantis(1.1.8)，地址：http://www.mantisbt.org/download.php<br />
下载EasyPHP（5.2.10），地址：http://www.easyphp.org/download.php(<strong>注:如果你本机有wamp或者Apmserver环境的的就不需要下载Easyphp了,可以把解压之后的mantis文件夹直接仍到www目录下面,然后在mantis文件下找到config_inc.php.sample,复制一份修改成config_inc.php,然后在里面配置一下数据库!<br />
注意:我的配置如下:</strong><br />
        $g_hostname      = "localhost:3306";<br />
  	$g_db_username   = "root";<br />
	$g_db_password   = "";<br />
 	$g_database_name = "bugtracker";<br />
	$g_db_type       = "mysql";<br />
 	# --- email variables -------------<br />
	$g_administrator_email  = 'administrator@example.com';<br />
	$g_webmaster_email      = 'webmaster@example.com';<br />
	# the "From: " field in emails<br />
	$g_from_email           = 'noreply@example.com';<br />
	# the return address for bounced mail<br />
	$g_return_path_email    = 'admin@example.com';<br />
 	$g_default_language                = 'chinese_simplified';)<br />
安装EasyPHP到C:\EasyPHP目录。<br />
把Mantis解压到C:\EasyPHP\www目录下，并重命名为bugs<br />
注意：<br />
1、EasyPHP的版本不要高于5.2.10，原因后面详说。<br />
2、EasyPHP的安装路径中不要包含空格。<br />
3、EasyPHP安装完后不要立即运行它。</p>
<p><strong>二、配置Apache</strong><br />
打开文本文件C:\EasyPHP\conf_files\httpd.conf，<br />
修改Listen 127.0.0.1:80为你想要的IP地址和监听端口，如Listen 192.168.1.103:80。<br />
这个地方IP 地址一定要改成网卡IP，否则用127.0.0.1这样的地址就算是局域网内的其它计算机也无法访问的。<br />
ServerName localhost:80一行视需要修改，方法见该该行上方的参考信息。</p>
<p><strong>三：配置MySQL</strong><br />
安全性：root用户的密码，可视需要自己更改。<br />
字符集：MySQL默认的校验字符集是瑞典语的，需要改成utf8，否则mantins无法存取中文字符。<br />
为防止意外，把MySQL和字符集有关的变量全部改成utf8。<br />
先改character_set_*之类的变量，且是全局的，*_*_ci之类的变量会跟着自己变动（HeidiSQLPortable 工具)。<br />
改完后退出，重新登录MySQL，再查看刚刚修改的变量是否已生效，因为有些(全部？）MySQL全局变量是要从下一个会话才开始生效的，所以不重新登录刷新变量的话会发现变量修改后还是那样。<br />
修改工具可用HeidiSQLPortable、phpmyadmin或MySQL-Front等等，注意这一步要在安装Mantis之前<br />
修改后的字符集变量如下：<br />
<a href="http://www.yunda51.com/wp-content/uploads/2014/03/140326154710.jpg"><img src="http://www.yunda51.com/wp-content/uploads/2014/03/140326154710.jpg" alt="" title="140326154710" width="365" height="214" class="alignnone size-full wp-image-1241" /></a><br />
<strong><br />
四、配置EasyPHP</strong><br />
如果Appache端口配置正确（IP地址有效、端口无冲突）的话还出现下面这个对话框，<br />
<a href="http://www.yunda51.com/wp-content/uploads/2014/03/1546.jpg"><img src="http://www.yunda51.com/wp-content/uploads/2014/03/1546.jpg" alt="" title="1546" width="328" height="109" class="alignnone size-full wp-image-1242" /></a><br />
那么可以配置一下EasyPHP，让它启动时不再验证80端口，步骤如下：<br />
打开配置界面<a href="http://www.yunda51.com/wp-content/uploads/2014/03/16.jpg"><img src="http://www.yunda51.com/wp-content/uploads/2014/03/16.jpg" alt="" title="16" width="430" height="242" class="alignnone size-full wp-image-1243" /></a><br />
把画红色横线部分的勾去掉<br />
<a href="http://www.yunda51.com/wp-content/uploads/2014/03/17.jpg"><img src="http://www.yunda51.com/wp-content/uploads/2014/03/17.jpg" alt="" title="17" width="427" height="243" class="alignnone size-full wp-image-1244" /></a></p>
<p><strong>五、安装、配置Mantis：</strong><br />
启动EasyPHP 5.2.10，打开浏览器，输入http://your-ip:port/bugs<br />
此时应该出现mantis的安装界面，在Admin Username (to create Database) 一行填上root，然后点“Install/Upgrade Database”按钮。接下来的测试和安装界面中没有出现红色背景的测试项，应该就没问题了。</p>
<p>然后打开C:\EasyPHP\www\bugs\config_inc.php，在末尾的“?>”符号之前插入以下语句：<br />
<a href="http://www.yunda51.com/wp-content/uploads/2014/03/18.jpg"><img src="http://www.yunda51.com/wp-content/uploads/2014/03/18.jpg" alt="" title="18" width="457" height="344" class="alignnone size-full wp-image-1245" /></a><br />
修改后以utf8编码的方式“另存为”C:\EasyPHP\www\bugs\config_inc.php，也就是以utf8编码覆盖掉原文件，否则$g_from_name变量中有中文时，邮件发件人部分会显示为乱码，其它部分正常。<br />
邮箱速度：从实际使用的情况来看，$g_phpMailer_method 设为2，用126的smtp作服务器。邮件收取速度如下：gmail邮箱速度很快，马上就可以收到；126的要几到十几分钟上；yahoo.com.cn邮箱半个多小时左右还没收到。<br />
安全性：Mantis要求禁用administrator用户、重命名或删除管理目录admin。注意禁用administrator用户之前先建一个管理员权限的用户。<br />
<strong><br />
六、可能遇到的问题：</strong><br />
如果PHP用5.3及以上版本，有时浏览器上会显示许多以下类似错误：<br />
<a href="http://www.yunda51.com/wp-content/uploads/2014/03/19.jpg"><img src="http://www.yunda51.com/wp-content/uploads/2014/03/19.jpg" alt="" title="19" width="498" height="60" class="alignnone size-full wp-image-1246" /></a><br />
这是因为PHP版本换成5.3以下的就OK了!<br />
转载请注明转自:<a href="http://www.yunda51.com">运达's blog</a>  原文地址：<a href="http://www.yunda51.com/1240.html">http://www.yunda51.com/1240.html</a></p>
]]></content:encoded>
			<wfw:commentRss>https://www.yunda51.com/?feed=rss2&#038;p=1240</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
