Linux下安装mantis配置指南.doc

上传人:飞****2 文档编号:60097106 上传时间:2022-11-13 格式:DOC 页数:9 大小:36KB
返回 下载 相关 举报
Linux下安装mantis配置指南.doc_第1页
第1页 / 共9页
Linux下安装mantis配置指南.doc_第2页
第2页 / 共9页
点击查看更多>>
资源描述

《Linux下安装mantis配置指南.doc》由会员分享,可在线阅读,更多相关《Linux下安装mantis配置指南.doc(9页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。

1、Linux下安装mantis配置指南(全) Linux下安装mantis配置指南1 配置Linux下的Apache+Mysql+PHP作为缺陷管理工具,前段时间bugzilla比较流行,但bugzilla配置比较繁琐,使用起来也是相当的繁琐。而且非常占系统资源。使用perl编写的CGI程序,所以很明显的一个缺点就是:每建立一个连接就会开启一个服务器进程。所以最近企业使用mantis的是越来越多了。使用非常方便简洁而且可以定制工作流等优点。发现网上关于在Linux下配置mantis的资料非常之少。所以经过两天的研究:成功搭建Linux下mantis,下面是简要的配置指南。不太清楚的地方,大家多多

2、提出,我会进一步补充。一.安装配置Apache安装包的获取:http:/www.apache.org1.1.安装Apache(tar包)tar zxvf http-2.2.11.tar.gz./configure -prefix=/usr/local/apache -enable-modules=so -enable-rewritemake & make install1.2.配置Apachevi /usr/local/apache/conf/httpd.conf找到下面这行#ServerName :80修改为:ServerName :80保存退出。1.3.拷贝文件cp a /usr/loca

3、l/apache/bin/apachectl /etc/rc.d/init.d/httpdcp a /usr/local/apache/bin/apachectl /etc/httpd/conf/httpd将httpd加到系统服务中cp /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpdvi httpd /在/etc/rc.d/int.d/目录下编辑复制过去的httpd程序找到:#!/bin/sh /一般在第一行另起一行,增加:# chkconfig: 2345 70 30# description: Apache然后注册服务:chkc

4、onfig -add httpd启动:service httpd start停止:service httpd stop重新启动:service httpd restart重启apache1.4运行service命令Service httpd restart1.5检验配置是否成功IE地址栏输入:看到Its Work证明配置成功。或者使用 ps aux|grep httpd如果看到多行数据,也证明配置成功二.安装Mysql(rpm包)安装包的获取: 2.1.检查是否安装mysql输入命令:rpm -qa |grep i mysql如果有提示,证明mysql已经安装,那么使用rpm e mysql卸

5、载mysql包。2.3启动服务service mysqld restart创建数据库mysql;create database bugtracker character set=utf8; grant all on *.* to mantis% identified by mantis;grant all on *.* to mantislocalhost identified by mantis;grant grant option on *.* to mantis% identified by mantis;设置mantis密码set password for mantislocalhos

6、t=old_password(mantis);三安装GD库(tar包 让PHP支持GIF、PNG、JPEG)注意:不安装只会影响mantis的数据统计部分功能。安装包的获取:3.1安装GD库3.1.1.安装jpeg6(jpegsrc.v6b.tar.gz)ftp:/ mkdir -p /usr/local/jpeg6mkdir -p /usr/local/jpeg6/binmkdir -p /usr/local/jpeg6/libmkdir -p /usr/local/jpeg6/includemkdir -p /usr/local/jpeg6/manmkdir -p /usr/local/j

7、peg6/man1mkdir -p /usr/local/jpeg6/man/man1tar zxvf jpegsrc.v6b.tar.gz./configure -prefix=/usr/local/jpeg6/ -enable-shared -enable-staticMake &make install3.1.2.安装libpng(libpng-1.2.35-i486-1.gz) http:/www.libpng.org/pub/png/libpng.htmltar zxvf libpng-1.2.35-i486-1.gz./configure -prefix=/usr/local/li

8、bpng/Make &make install3.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.gzmkdir -p /usr/local/freetype./configure -prefix=/usr/local/freetypeMake &make install3.1.4.安装zlib (zl

9、ib-1.2.3.tar.gz) tar zxvf zlib-1.2.3.tar.gz./configure -prefix=/usr/local/zlibMake &make install3.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.gzm

10、kdir -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 install3.1.6安装Curl库(curl-7.19.4.tar.gz) http:/curl.haxx.se/download.htmltar zxvf curl-7.19.4.tar.gz./configure -pr

11、efix=/usr/local/curlMake &make install四安装PHP(tar包,PHP必须有libxml2支持) 安装包的获取:4.1.安装libxml24.2.安装libxslt(可选安装)4.3.安装php5tar zxvf php-5.2.9.tar.gz./configure -prefix=/usr/local/php -with-apxs2=/usr/local/apache2/bin/apxs -with-mysql=/usr/local/mysql -with-libxml-dir=/usr/local/libxml2/ -with-gd=/usr/loca

12、l/gd2/ -with-jpeg-dir=/usr/local/jpeg6/ -with-png=/usr/local/libpng -with-zlib-dir=/usr/lib/ -with-freetype-dir=/usr/local/freetype -with-curl=/usr/local/curl/ -with-xsl=/usr/local/libxslt -enable-xsltmake & make install4.4配置文件cp php.ini-dist /usr/local/lib/php.ini (cp -f php.ini-development /usr/lo

13、cal/lib/php.ini五重新配置Apache5.1. vi /usr/local/apache/conf/httpd.conf5.1.1找到 AddType application/x-gzip .gz .tgz在其下面添加一行AddType application/x-httpd-php .php .php3AddType application/x-httpd-php-source .phps5.1.1找到 DirectoryIndex index.html修改为:DirectoryIndex index.html default.php index.php5.2设置php文件后缀

14、vi /usr/local/lib/php.ini找到register-globals这一行修改成:register-globals=on5.3第一个php程序vi /usr/local/apache/htdocs/test.php文件内容为:5.4重启apache服务service httpd restart5.5检验是否成功在IE中输入如下网址看到php的有关配置信息就证明成功了。2安装配置mantis一安装mantis1.1将mantis解压到/usr/local/apache/htdocs目录下。1.2生成:mantis配置文件: cp config_inc.php.sample co

15、nfig_inc.php1.3生成数据库; 凡是mantis 1.0.0a2以后的版本生成数据库都比较简单,只需要上面那个网址就可以。1.4对bugtracker赋权限: grant all privileges on bugtracker.* to mantisdbuserlocalhost identified by ;1.5.登录:IE中输入:用户名:administrator密码:root二.安装配置sendmail请参见:Linux初学者Sendmail配置指南三.安装配置phpmailer安装包的获取:解压此安装包后到/var/phpmailer3.1拷贝文件到include_pa

16、th路径下将此安装包的class.smtp.php 和class.phpmailer.php文件拷贝到php的include_path所包含的路径下。3.2配置mantis的配置文件:config_inc.php增加:$g_smtp_host=; #mail server的地址$g_phpMailer_method=2;$g_return_path_email=test1; #你的一个邮箱账户$g_administrator_email=rootlocalhost;$g_from_email=rootlocalhost;3.3配置php.ini的配置文件:vi /usr/local/lib/p

17、hp.ini在#include_path下面一行增加:Include_path=”.:/usr/local/php/lib/php/”四.安装配置jpgraph4.1安装jpgraph库(jpgraph-2.3.4.tar.gz) http:/www.aditus.nu/jpgraph/jpdownload.phptar 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 SetAntiA

18、liasing($aFlg=true) $this-use_anti_aliasing = $aFlg;4.3 配置jpgraph_ttf.inc.php打开 /mantis/jpgraph/src /jpgraph_ttf.inc.php 文件注释 elseif语句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的位置

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育专区 > 教案示例

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知得利文库网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号-8 |  经营许可证:黑B2-20190332号 |   黑公网安备:91230400333293403D

© 2020-2023 www.deliwenku.com 得利文库. All Rights Reserved 黑龙江转换宝科技有限公司 

黑龙江省互联网违法和不良信息举报
举报电话:0468-3380021 邮箱:hgswwxb@163.com