Mantis -- linux
测试空间旗下大头针出品
作为缺陷管理工具,前一段时间bugzilla比较流行,但bugzilla配置比较繁琐,使用起来也是相当的繁琐。而且非常占系统资源。使用perl编写的CGI程序,所以很明显的一个缺点就是:每建立一个连接就会开启一个服务器进程。所以最近企业使用mantis的是越来越多了。使用非常方便简洁而且可以定制工作流等优点。发现网上关于在Linux下配置mantis的资料非常之少。所以经过两天的研究:成功搭建Linux下mantis,下面是简要的配置指南。不太清楚的地方,大家多多提出,我会进一步补充。
Linux下安装mantis配置指南
1 配置Linux下的Apache+Mysql+PHP
一.安装配置Apache
安装包的获取:http://www.apache.org
1.1.安装Apache(tar包)
tar –zxvf http-2.2.11.tar.gz
./configure --prefix=/usr/local/apache --enable-modules=so --enable-rewrite
make && make install
1.2.配置Apache
vi /usr/local/apache/conf/httpd.conf
找到下面这行
#ServerName www.example.com:80
修改为:
ServerName www.dong.com:80
保存退出。
1.3.拷贝文件
cp –a /usr/local/apache/bin/apachectl /etc/init.d/httpd
1.4运行service命令
Service httpd restart
1.5检验配置是否成功
IE地址栏输入:http://www.dong.com
看到It’s Work证明配置成功。
或者使用 ps –aux|grep httpd
如果看到多行数据,也证明配置成功
二.安装Mysql(rpm包)
安装包的获取: http://www.mysql.com
2.1.检查是否安装mysql
输入命令:
rpm -qa |grep –i mysql
如果有提示,证明mysql已经安装,那么使用rpm –e mysql卸载mysql包。
因为系统安装的mysql的版本太低了。
2.2.如果没有安装
2.2.1.从mysql网站获取安装包:
rpm –ivh mysql-client*
rpm –ivh mysql-server*
2.3启动服务
service mysql restart
三.安装GD库(tar包 让PHP支持GIF、PNG、JPEG)
注意:不安装只会影响mantis的数据统计部分功能。
3.1安装GD库
3.1.1.安装jpeg6(jpegsrc.v6b.tar.gz)ftp://ftp.uu.net/graphics/jpeg/
mkdir -p /usr/local/jpeg6
mkdir -p /usr/local/jpeg6/bin
mkdir -p /usr/local/jpeg6/lib
mkdir -p /usr/local/jpeg6/include
mkdir -p /usr/local/jpeg6/man
mkdir -p /usr/local/jpeg6/man1
mkdir -p /usr/local/jpeg6/man/man1
tar –zxvf jpegsrc.v6b.tar.gz
./configure --prefix=/usr/local/jpeg6/ --enable-shared --enable-static
Make &&make install
3.1.2.安装libpng(libpng-1.2.35-i486-1.gz) http://www.libpng.org/pub/png/libpng.html
tar –zxvf libpng-1.2.35-i486-1.gz
./configure --prefix=/usr/local/libpng/
Make &&make install
3.1.3.安装freetype(freetype-2.3.9.tar.gz) http://freetype.fis.uniroma2.it/download.html
注意:需升级make version到3.80以上:下载地址:http://ftp.gnu.org/pub/gnu/make/
tar –zxvf freetype-2.3.9.tar.gz
mkdir -p /usr/local/freetype
./configure --prefix=/usr/local/freetype
Make &&make install
3.1.4.安装zlib (zlib-1.2.3.tar.gz) http://zlib.net/index.html
tar –zxvf zlib-1.2.3.tar.gz
./configure --prefix=/usr/local/zlib
Make &&make install
3.1.5.安装GD库 (gd-2.0.35.tar.gz) http://www.libgd.org/Downloads
注意:需要对m4升级到1.4.12. 下载地址:http://ftp.gnu.org/pub/gnu/m4/
注意:需要对autoconf升级到2.58或者更高 下载地址:http://ftp.gnu.org/pub/gnu/autoconf/
tar –zxvf gd-2.0.35.tar.gz
mkdir -p /usr/local/gd2
./configure --prefix=/usr/local/gd2 --with-jpeg=/usr/local/jpeg6/ --with-png=/usr/local/lib/ --with-zlib=/usr/local/zlib/ --with-freetype=/usr/local/freetype/
Make &&make install
3.1.6安装Curl库(curl-7.19.4.tar.gz) http://curl.haxx.se/download.html
tar –zxvf curl-7.19.4.tar.gz
./configure --prefix=/usr/local/curl
Make &&make install
四.安装PHP(tar包,PHP必须有libxml2支持)
安装包的获取:http://www.php.net
4.1.安装libxml2
4.2.安装libxslt(可选安装)
4.3.安装php5
tar –zxvf php-5.2.9.tar.gz
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-libxml-dir=/usr/local/libxml2/ --with-gd=/usr/local/gd2/ --with-jpeg-dir=/usr/local/jpeg6/ --with-png=/usr/local/lib --with-zlib-dir=/usr/lib/ --with-freetype-dir=/usr/local/freetype --with-curl=/usr/local/curl/ --with-xsl=/usr/local/libxslt --enable-xslt
make && make install
4.4配置文件
cp php.ini-dist /usr/local/lib/php.ini
五.重新配置Apache
5.1. vi /usr/local/apache/conf/httpd.conf
5.1.1找到 AddType application/x-gzip .gz .tgz在其下面添加一行
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
5.1.1找到 DirectoryIndex index.html修改为:
DirectoryIndex index.html default.php index.php
5.2设置php文件后缀
Vi /usr/local/lib/php.ini
找到register-globals这一行修改成:
register-globals=on
5.3第一个php程序
vi /usr/local/apache/htdocs/test.php
文件内容为:
<?
Phpinfo();
?>
5.4重启apache服务
service httpd restart
5.5检验是否成功
在IE中输入如下网址
http://www.dong.com/test.php
看到php的有关配置信息就证明成功了。
2安装配置mantis
一.安装mantis
1.1将mantis解压到/usr/local/apache/htdocs目录下。
1.2生成:mantis配置文件:
cp config_inc.php.sample config_inc.php
1.3生成数据库;
http://www.dong.com/mantis/admin/install.php
凡是mantis 1.0.0a2以后的版本生成数据库都比较简单,只需要上面那个网址就可以。
1.4对bugtracker赋权限:
grant all privileges on bugtracker.* to mantisdbuser@localhost identified by "";
1.5.登录:
IE中输入:http://www.dong.com/mantis
用户名:administrator
密码:root
二.安装配置sendmail
请参见:Linux初学者Sendmail配置指南
http://blog.sina.com.cn/s/blog_4b086af10100c2ca.html
三.安装配置phpmailer
安装包的获取:http://phpmailer.sourceforge.net
解压此安装包后到/var/phpmailer
3.1拷贝文件到include_path路径下
将此安装包的class.smtp.php 和class.phpmailer.php文件拷贝到php的include_path所包含的路径下。
3.2配置mantis的配置文件:config_inc.php
增加:
$g_smtp_host=’www.dong.com’; #mail server的地址
$g_phpMailer_method=2;
$g_return_path_email=’test1@dong.com’; #你的一个邮箱账户
$g_administrator_email='root@localhost';
$g_from_email='root@localhost';
3.3配置php.ini的配置文件:vi /usr/local/lib/php.ini
在#include_path下面一行增加:
Include_path=”.:/usr/local/php/lib/php/”
四.安装配置jpgraph
4.1安装jpgraph库(jpgraph-2.3.4.tar.gz) http://www.aditus.nu/jpgraph/jpdownload.php
tar –zxvf jpgraph-2.3.4.tar.gz
拷贝解压后 jpgraph到mantis目录下
4.2配置gd_image.inc.php
打开/mantis/jpgraph/src/gd_image.inc.php 文件
注释if else语句
function SetAntiAliasing($aFlg=true) {
$this->use_anti_aliasing = $aFlg;
/*
if( function_exists('imageantialias') ) {
imageantialias($this->img,$aFlg);
}
else {
JpGraphError::RaiseL(25128);//('The function imageantialias() is not available in your PHP installatio
n. Use the GD version that comes with PHP and not the standalone version.')
}
*/
}
4.3 配置jpgraph_ttf.inc.php
打开 /mantis/jpgraph/src /jpgraph_ttf.inc.php 文件
注释 elseif语句
/*elseif( $aFF === FF_SIMSUN ) {
Do Chinese conversion
if( $this->g2312 == null ) {
include_once 'jpgraph_gb2312.php' ;
$this->g2312 = new GB2312toUTF8();
}
return $this->g2312->gb2utf8($aTxt);
}*/
4.4 配置graph_api.php
打开 /mantis/core/graph_api.php文件
找到 graph_get_font()函数添加
'chinese_gbk' => FF_SIMSUN,
4.4 配置config_inc.php
打开 /mantis/config_inc.php文件
添加 $g_graph_font = 'chinese_gbk';
添加 $g_use_jpgraph = ON;
$g_jpgraph_path =’’;//引号内添加jpgraph的位置
Mantis -- linux相关推荐
- mantis 重启mysql_Mantis -- linux
测试空间旗下大头针出品 作为缺陷管理工具,前一段时间bugzilla比较流行,但bugzilla配置比较繁琐,使用起来也是相当的繁琐.而且非常占系统资源.使用perl编写的CGI程序,所以很明显的一个 ...
- mantis系列:Linux系统mantis(bug管理系统)的安装搭建配置
目录 下载xampp 安装 启动 验证 安装mentis 下载 安装 配置 验证 下载xampp xampp集成了MySQL.PHP.HTTPD CSDN:https://download.csdn. ...
- Mantis 缺陷管理系统配置与安装
搭建Mantis 缺陷管理系统 By Snooper 错误必有!欢迎指正! 什么是Mantis MantisBT is a free popular web-based bugtracking sys ...
- 搭建Mantis 缺陷管理系统(转)
转自 什么是Mantis MantisBT is a free popular web-based bugtracking system (feature list). It is written i ...
- BUG管理系统(Mantis)迁移实录
Mantis迁移实录 名词解释 Mantis: 开源的BUG管理平台Mantis,也做MantisBT. 同档次产品有EasyBUG,QC,BugFree,Bugzila. Xa ...
- 深度linux deepin 12.12,Linux Deepin 12.12 Beta 发布
一.概述 两个月前,我们发布了搭载独立开发的"深度桌面环境"的 Linux Deepin 12.12 Alpha 版本.现在,Linux Deepin 12.12 Beta 版本来 ...
- 如何安装和配置Mantis
一.Mantis的概述以及其作用? 1.基本概述 缺陷管理平台Mantis,也叫做MantisBT,全称Mantis Bug Tracker.它是一个基于PHP技术的轻量级的开源缺陷跟踪系统,以web ...
- 搭建Mantis 缺陷管理系统
原文地址: http://www.cnblogs.com/snooper/archive/2009/09/07/1561715.html 搭建Mantis 缺陷管理系统 By Snooper 错误必有 ...
- 缺陷跟踪管理工具-Mantis BugFree Bugzilla
总的来说: 对于中小项目,使用Mantis: 对于Windows平台,使用Mantis: 对于中大项目,使用Bugzilla: 对于Unix平台,使用Bugzilla: 对于喜欢MS的MSF和BUG管 ...
最新文章
- Android Load Picture Asynchronously
- 云迹科技:站在酒店场景服务机器人的风口
- 增长量计算n+1原则_土方量计算方法
- Shopee:阿里神话被打碎,东南亚第一电商平台的崛起史
- 圆形缓冲区(循环buffer)实现
- 怎么撤销定时说说_武夷山币7省线下预约火爆!名字错了怎么办,附预约问题整理...
- linux下ssh/scp无密钥登陆方法
- php hscan,hgetall 替代 hscan的用法详解。
- 空时编码的理论与实践(3)空时编码设计准则
- ARM9开发板实验笔记(1)
- 阴谋还是悲剧?- 基于机器学习假设检验视角,看泰坦尼克号事件
- 短语匹配-match_phrase以及slop参数
- java验证图片大小_java 校验图片的大小、尺寸、比例
- 客户旅行地图教程 - 带15个示例
- mysql error 1677_MySQL slave error 1677
- 使用@ResponseBody对象转json和@RequestBody进行json转对象案例
- 面试中一些较为复杂的常见的算法
- 如何做好企业网络营销推广?从本质上去理解互联网开始!
- iqooneo3 如何不用vivo账号下载外部应用_iQOO Neo3评测:救市或转型?总之香就对了...
- Day2 B - Stones
热门文章
- 小文聊天机器人(jquery.chatbot.js)使用指南
- 文献解读 | m6A——程序性细胞死亡与癌症的“双刃剑”
- ChinaSoft 论坛巡礼 | 形式化方法工业应用前沿
- 安规之电气间距和爬电距离
- 分享申请IDP账号的过程,包含duns申请的分享
- Unable to instantiate appComponentFactory
- HTML04-form表单
- Application context和Activity context的区别
- netsh interface portproxy listenaddress
- 泰勒公式专题 拉格朗日余项与佩亚诺余项,麦克劳林公式