Bug管理 Mantis安装(Centos)
CentOS 安装和配置 MantisMantis是一个基于PHP技术的轻量级的开源缺陷跟踪系统,以Web操作的形式提供项目管理及缺陷跟踪服务。在功能上、实用性上足以满足中小型项目的管理及跟踪。更重要的是其开源,不需要负担任何费用。
1. 安装apache, mysql等必要软件
1 #yum update
2 #yum install httpd php php-pdo php-mysql php-gd mysql mysql-server
3 #chkconfig mysqld on
4 #service mysqld restart
5 #chkconfig httpd on
6 #service httpd restart
2. 下载并解压mantis
#cd /var/www/html(这是apache监控目录)
#wget http://sourceforge.net/projects/mantisbt/files/mantis-stable/1.2.15/mantisbt-1.2.15.tar.gz/download(下载不了可直接去网站下载)
#tar xvf mantisbt-1.2.15.tar.gz
#mvmantisbt-1.2.15mantis
#chown -R apache:apache mantis
3. 创建数据库
#mysql -u root -p***
>create database mantis;
>grant all privileges on mantis.* to user@localhost identified by 'password';
>flush privileges;
>exit;
#
4. 安装mantis
在浏览器里输入http://ip/mantis,此时浏览器会跳转到http://ip/mantis/admin/install.php,按照实际情况输入hostname,databasename(即第3步里面的mantis),username(即第3步里面的user),password(即第3步里面的password)。其中数据库类型可以选择Mysqli。
填写好这些内容,点击install/update database即可。
5. 配置mantis
#cd /var/www/html/mantis
#rm -rfconfig_inc.php
#cp config_inc.php.sample config_inc.php
#vim config_inc.php
主要的配置如下:
<p deep="9" style="box-sizing: inherit; margin-top: 16px; margin-bottom: 14px; line-height: 28px;">$g_hostname = 'localhost'; #服务器地址
$g_db_username = 'user'; #数据库用户
$g_db_password = 'password'; #数据库密码
$g_database_name = 'mantis'; #数据库名称
$g_db_type = 'mysqli'; #数据库类型
$g_allow_signup = ON;
$g_allow_anonymous_login = OFF;
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.sina.com:25';
$g_smtp_username = '***'; #邮箱用户名,即@前面的部分
$g_smtp_password = '***'; #邮箱密码
$g_administrator_email = '***<span style="box-sizing: inherit;">@***</span>';
$g_webmaster_email = '***<span style="box-sizing: inherit;">@***</span>';
$g_from_email = ''; #From字段的值
$g_return_path_email = '';
</p><p style="box-sizing: inherit; margin-top: 16px; margin-bottom: 14px; line-height: 28px;">
$g_allow_file_upload = ON;
$g_file_upload_method = DISK;
$g_absolute_path_default_upload_folder = '/var/www/html/maintis/upload/';
$g_max_file_size = 100000; #单位是字节,即100kB
#以下两个需要自己添加
$g_default_language = 'chinese_simplified';
$g_fallback_language = 'chinese_simplified';</p><p style="box-sizing: inherit; margin-top: 16px; margin-bottom: 14px; line-height: 28px;">#$g_send_reset_password = OFF;#是否通过EMIAL发送密码
#$g_allow_blank_email = ON; #是否允许不填写EMAIL</p><p style="box-sizing: inherit; margin-top: 16px; margin-bottom: 14px; line-height: 28px;">$g_default_timezone = 'Asia/Shanghai'; #时区
$g_show_realname = ON; #人员姓名显示中文</p>
6. 重启服务,删除admin目录(完成上面操作就不需要了)#service httpd restart
#service mysqld restart
#cd /var/www/html/mantis
#rm -rf admin
7.登录:(默认用户名密码:administrator/root)这时,在浏览器里输入http://ip/mantis
备注:
[*]分派问题时不分派给管理员
超级用户登录-->管理-->配置管理-->工作流阀值-->权限-->管理问题-->不勾选管理员即可
[*]将config_defaults_ini.php文件中的$g_default_language的值有English改为“chinese_simplified”
页:
[1]