Mantis Bug 跟踪系统安装与配置

Mantis Bug Tracker 是一款免费的,基于php/MySQL/web 的问题跟踪系统Bug追踪系统。 Mantis BT 的官网说明如下:

MantisBT is a free popular web-based bugtracking system (feature list). It is written in the PHP scripting language and works with MySQL, MS SQL, and PostgreSQL databases and a webserver. MantisBT has been installed on Windows, Linux, Mac OS, OS/2, and others. Almost any web browser should be able to function as a client. It is released under the terms of the GNU General Public License (GPL).

官网地址:http://www.mantisbt.org/

. Mantis 的安装

Mantis 需要Apachephpmysql的支持。方便起见,我们安装一下EasyPHPEasyPHP是在Windows平台上运行的软件包,包括Apache服务器,MySQL数据库,PHP,以及phpMyAdmin工具。

1.1 下载安装文件

EasyPHP的下载地址:http://www.easyphp.org/download.php

Mantis BT 下载地址:http://www.mantisbt.org/download.php

1.2 安装EasyPHP

1.3 配置www文件

1)将C:/Program Files (x86)/EasyPHP-5.3.3.1 目录下的phpmyadmin 文件移动到C:/Program Files (x86)/EasyPHP-5.3.3.1/www

2)解压缩Mantis 文件,将解压缩之后的文件也移动到C:/Program Files (x86)/EasyPHP-5.3.3.1/www 目录下。

1.4 启动EasyPHP

开始菜单 - 程序 - EasyPHP运行EasyPHP

我们就可以通过IE来访问phpmyadminMantis

http://localhost:8888/phpmyadmin/

http://localhost:8888/mantisbt/

IE模式是8888端口, 这个我们可以在EasyPHP来修改apache的端口,配置文件是:C:/Program Files (x86)/EasyPHP-5.3.3.1/apache/conf/ httpd.conf IE 最后的名称就是我们之前复制到www目录下的文件。

. 配置

2.1 设置mysql root用户的密码 或者新建个用户

1)陆到phpmyadmin: http://localhost:8888/phpmyadmin/

2)选择privileges

在这里修改root 用户的密码。 默认情况下是没有密码的。

3)修改配置文件

修改C:/Program Files (x86)/EasyPHP-5.3.3.1/www/phpmyadmin/ config.inc.php

,在文件中指定root的登陆密码。 因为phpmyadmin登陆的时候,会从这个文件里读取密码。

$cfg['Servers'][$i]['user'] = 'root';

$cfg['Servers'][$i]['password'] = 'root';

4)重启EasyPHP,验证能否正常登陆。 以上步骤就是修改了root的用户密码,并保证正常登陆。 因为在后面会用到这么密码。

2.2 创建mysql 用户并创建数据库

http://localhost:8888/phpmyadmin/界面上直接操作即可。 创建完成后, 在安装Mantis安装时,会在这个数据库上创建一些基础表。

2.3 安装Mantis

Mantis 在第一次运行的时候,http://localhost:8888/mantisbt/ 显示的是一个安装页面。 在这个页面需要输入root的用户和密码。 会创建一个mysql 数据库bugtracker, 同时创建bugtracker的用户。 输入信息后点击install/upgrade. 安装即可。

数据库创建完后,会创建一些Mantis的基础表。 执行结束后,就可以通过

http://localhost:8888/mantisbt/ 页面进行登陆。默认用户和密码: administrator/root登录。

在登陆的时候会提示:

警告:建议禁止缺省管理员帐号或修改该账号密码

操作:删除C:/Program C:/Program Files (x86)/EasyPHP-5.3.3.1/www/mantisbt下的admin目录;在管理摸下的用户管理里,禁止administrator账户或改变 administrator账户的缺省口令。

2.4 中文显示

修改C:/Program Files (x86)/EasyPHP-5.3.3.1/www/mantisbt/config_inc.php 文件,添加:

$g_default_language = 'chinese_simplified';

添加完, 刷新一下, 页面就变成中文的了。

2.5 显示时间的修改

1)时区设置:

C:/Program Files (x86)/EasyPHP-5.3.3.1/www/mantisbt/config_inc.php文件添加:

$g_default_timezone='Asia/Shanghai';

2)时间格式设置:

C:/Program Files (x86)/EasyPHP-5.3.3.1/www/mantisbt/config_inc.php中添加:

$g_complete_date_format = 'Y-m-d H:i:s';

2.6 设置外部IP访问

在默认情况下, 安装完之后,只能通过本地的IP进行访问。 如果需要外部IP问,需要在C:/Program Files (x86)/EasyPHP-5.3.3.1/apache/conf/ httpd.conf中添加:

Listen 192.168.6.168:8888

这样就可以用http://192.168.6.168:8888/mantisbt/login_page.php 进行访问。

2.7 创建用户

在管理页面的用户管理里面添加用户。这里添加之后,无法设置密码,默认是通过邮件发送到用户的邮箱。 如果没有配置邮箱的话,就无法登陆。 邮箱的配置在2.8 节有说明。

在这里,我们可以修改config_defaults_inc.php 文件,设置为OFF后, 创建用户的密码就会设为空。

/**

* if ON users will be sent their password when reset.

* if OFF the password will be set to blank. If set to ON, mail settings must be

* correctly configured.

* @global int $g_send_reset_password

*/

$g_send_reset_password = ON;

2.8 设置邮箱

C:/Program Files (x86)/EasyPHP-5.3.3.1/www/mantisbt/config_defaults_inc.php 文件中对Email的配置:

/***************************

* MantisBT Email Settings *

***************************/

/**

* Administrator Email address

* @global string $g_administrator_email

*/

$g_administrator_email = 'tianlesoftware@vip.qq.com';

/**

* Webmaster email

* @global string $g_webmaster_email

*/

$g_webmaster_email = ' tianlesoftware@vip.qq.com ';

/**

* the sender email, part of 'From: ' header in emails

* @global string $g_from_email

*/

$g_from_email = ' tianlesoftware@vip.qq.com ';

/**

* the sender name, part of 'From: ' header in emails

* @global string $g_from_name

*/

$g_from_name = 'Mantis Bug Tracker';

/**

* the return address for bounced mail

* @global string $g_return_path_email

*/

$g_return_path_email = ' tianlesoftware@vip.qq.com ';

/**

* Allow email notification.

* Set to ON to enable email notifications, OFF to disable them. Note that

* disabling email notifications has no effect on emails generated as part

* of the user signup process. When set to OFF, the password reset feature

* is disabled. Additionally, notifications of administrators updating

* accounts are not sent to users.

* @global int $g_enable_email_notification

*/

$g_enable_email_notification = ON;

/**

* select the method to mail by:

* PHPMAILER_METHOD_MAIL - mail()

* PHPMAILER_METHOD_SENDMAIL - sendmail

* PHPMAILER_METHOD_SMTP - SMTP

* @global int $g_phpMailer_method

*/

$g_phpMailer_method = PHPMAILER_METHOD_SMTP;

-- 注意, 这里配置的是邮件的发送方式。 这里我们设置为SMTP

/**

* This option allows you to use a remote SMTP host. Must use the phpMailer script

* One or more hosts, separated by a semicolon, can be listed.

* You can also specify a different port for each host by using this

* format: [hostname:port] (e.g. "smtp1.example.com:25;smtp2.example.com").

* Hosts will be tried in order.

* @global string $g_smtp_host

*/

$g_smtp_host = 'smtp.qq.com';

/**

* These options allow you to use SMTP Authentication when you use a remote

* SMTP host with phpMailer. If smtp_username is not '' then the username

* and password will be used when logging in to the SMTP server.

* @global string $g_smtp_username

*/

$g_smtp_username = 'tianlesoftware';

/**

* SMTP Server Authentication password

* @global string $g_smtp_password

*/

$g_smtp_password = 'password';

/**

* This control the connection mode to SMTP server. Can be 'ssl' or 'tls'

* @global string $g_smtp_connection_mode

*/

$g_smtp_connection_mode = ''; -- 这里不要写,我开始写的时候,提示不支持ssl

/**

* The smtp port to use. The typical SMTP ports are 25 and 587. The port to use

* will depend on the SMTP server configuration and hence others may be used.

* @global int $g_smtp_port

*/

$g_smtp_port = 25;

配置好这些好, 做相关操作时,会发送到创建用户的邮箱。 如创建用户时,会发送修改密码的邮件到指定账户。

2.9 文件上传

C:/Program Files (x86)/EasyPHP-5.3.3.1/www/mantisbt/config_defaults_inc.php种有相关的配置, 需要变跟的有如下:

/*********************************

* MantisBT File Upload Settings *

*********************************/

/**

* Upload destination: specify actual location in project settings

* DISK, DATABASE, or FTP.

* @global int $g_file_upload_method

*/

$g_file_upload_method = DISK;

/**

* Files that are allowed or not allowed. Separate items by commas.

* eg. 'php,html,java,exe,pl'

* if $g_allowed_files is filled in NO other file types will be allowed.

* $g_disallowed_files takes precedence over $g_allowed_files

* @global string $g_allowed_files

*/

$g_allowed_files = 'txt,doc,jpg'; -- 设置允许的类型,如果不设置的话,就不能上传到指定位置。

/**

* absolute path to the default upload folder. Requires trailing / or /

* @global string $g_absolute_path_default_upload_folder

*/

$g_absolute_path_default_upload_folder = 'D:/Upload';

配置完成后, 在新建项目时,在上传位置写:D:/Upload 在该项目的所有bug问题中的附近都会上传到这个位置。

2.10 附件预览

这是config_defaults_inc.php的默认值, 如果设置为0,就不预览附件.

/**

* Specifies the maximum size (in bytes) below which an attachment is

* previewed in the bug view pages.

* To disable the previewing of attachments, set max size to 0.

* @global int $g_preview_attachments_inline_max_size

*/

$g_preview_attachments_inline_max_size = 256 * 1024;

其他的一些配置参考config_defaults_inc.php 文件, 在参数上有详细的说明。

------------------------------------------------------------------------------

Blog http://blog.csdn.net/tianlesoftware

网上资源: http://tianlesoftware.download.csdn.net

相关视频:http://blog.csdn.net/tianlesoftware/archive/2009/11/27/4886500.aspx

DBA1 群:62697716(); DBA2 群:62697977()

DBA3 群:62697850 DBA 超级群:63306533;

聊天 群:40132017

--加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值