Mantis安装说明文档

 在错误追踪系统中,Mantis绝对是个轻量级的工具,无论安装还是配置或使用,正如它自己的目标中所宣称的。但是,对一个中小型的项目来言,功能够用。

 Mantis是一个基于php/MySQL/web的开源的错误追踪系统,以下安装教程假设系统已经安装好了ApachePHPMySQL的运行系统,如何安装这些环境请查看另外的配置文档。

一、下载

 Mantis官方网站下载最新版本。http://www.mantisbt.org/
 
目前最新版为1.1.1

二、安装


 1
、解压缩

  $tar zxvf mantis-0.19.1.tar.gz
  $mv mantis-0.19.1 mantis

 2、建立数据库mantis及用户mantis

  $mysqladmin -u root -p create mantis
  //
输入MySQLroot密码即可完成创建数据库mantis的操作
  $mysql -u root -p
  mysql>grant all privileges on mantis.* to 'mantis'@'localhost' identified by '
你指定的mantis用户密码';
  mysql>FLUSH PRIVILEGES;
  mysql>\q

 3、修改配置文件

  $cd mantis
  $cp config_inc.php.sample config_inc.php
  $vi config_inc.php

  //修改以下几行
  $g_db_username = "mantis";
  $g_db_password = "
你在建立用户时指定的密码";
  $g_database_name = "mantis";

  //增加一下几行
  $g_path = "http://www.yourdomain.com/mantis/";
  $g_icon_path = $g_path."images/";
  $g_absolute_path = "/
解压缩的目录/mantis/"; #此处的mantis要和第1)步中mv的目标一致
  $g_use_iis = OFF; #
我们用的是linux
  $g_show_version = ON;

邮件也可以用直接修改config_defaults_inc.php  
//
以下是配置邮件的,Mantis使用邮件来进行注册和通知,所以必须配置好
  $g_enable_email_notification = ON; #
开通邮件通知
  $g_smtp_host = 'mail.gzweishun.com';   # SMTP
服务器
  $g_smtp_username = '[email protected]';  #
邮箱登录用户名                      
  $g_smtp_password = '
对应用户邮箱的密码';  # 邮箱登录密码                         
  $g_use_phpMailer = ON;   #
使用 PHPMailer 发送邮件                               
  $g_phpMailer_path = '/usr/local/php/includes/PHPMailer/'; # PHPMailer
的存放路径     
  $g_phpMailer_method = 2;   # PHPMailer
SMTP                                 


 4
、汉化

  $vi config_inc.php
  //
修改下面这行为
  $g_default_language='chinese_simplified';
  $vi sql/db_generate.sql
  language varchar(32) NOT NULL default 'chinese_simplified',

 5、创建数据库的表结构

  $mysql -u mantis -p mantis<sql/db_generate.sql
  //
输入数据库密码即可创建

 6、修改apache的配置文件并重新启动apache

  $vi $APACHE_HOME/conf/httpd.conf
  //
增加以下几行(仅供参考)

  Alias /mantis/ "/解压缩目录/mantis/"

  Options Indexs MultiViews Includes FollowSymLinks +ExecCGI
  AllowOverride None
  Order allow, deny
  Allow from all

  注:此处的 Alias /mantis/中的mantis要和前面设置的$g_path中的mantis保持一致

 

附:我的config_inc.php:

<?php
 $g_hostname = 'localhost';
 $g_db_type = 'mysql';
 $g_database_name = 'mantis';
 $g_db_username = 'root';
 $g_db_password = 'password';
 $g_default_language='chinese_simplified';
 
 $g_administrator_email = '[email protected]';
 $g_webmaster_email = '[email protected]';
 $g_return_path_email = '[email protected]';
 
 $g_from_email = '[email protected]';
 $g_enable_email_notification = ON;
 $g_smtp_host = 'mail.siebresystems.com';
 $g_smtp_username = '[email protected]';
 $g_smtp_password = '5668788guo';
 $g_use_phpMailer = ON;
 $g_phpMailer_path = '/home/tmp/PHPMailer/';
 $g_phpMailer_method = 2;
?>

你可能感兴趣的:(apache,sql,mysql,PHP,linux)