Mantis安裝與配置

來源:互聯網
上載者:User

標籤:blog   http   使用   strong   檔案   os   

什麼是Mantis

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).

 


Mantis是一個BUG管理系統。主要特點如下:

1、 用php寫的系統,安裝方便,不用像 bugzilla 那樣安裝那麼多perl支援;

2、 系統相對簡單輕磅,使用簡單;

3、 出色的多語支援,對於對日開發等公司非常合適;

 

介面圖示:

 


      
 線上示範地址:http://www.futureware.biz/mantisdemo

 

環境搭建及Mantis安裝、配置

由於Mantis是用php寫的系統,而要調試php程式當然要用到apache+php+mysql,而apache+php+mysql配置起來卻又是很麻煩的事,這還不包括環境衝突、、、等等,這些又或者是那些導致配置失敗的問題。但剛巧有這麼一個套件可以省去這些以前是需要解決的問題,這個套件就是EasyPHP了。EasyPHP整合了:Apache、PHP、MySQL、PhpMyAdmin。

以上軟體可參考文章最後的參考資料。

適用範圍

本文介紹基於Windows下的Mantis BUG管理系統的搭建。

軟體下載

Mantis:http://www.mantisbt.org/

EasyPHP:http://www.easyphp.org/

 

本文以mantis-1.1.0a4+ EasyPHP-3.1為示範版本,並測試通過。

安裝EasyPHP

         安裝EasyPHP很簡單,雙擊下載到的EasyPHP-3.1.exe,然後一直預設點擊Next即可安裝完成。當然啦,在License Agreement頁面是必須選擇I Access The Agreement……

       軟體預設目錄:C:"Program Files"EasyPHP3.1 

 安裝進度…

       

      Installing…
      

            
      Completing!

 

EasyHPH成功安裝!勾選上“Open Help”、“Launch EasyPHP”,點擊“Finish”。可看到如下頁面:
           
      若成功運行時,雙擊在Windows托盤的 表徵圖,可看到如所示,Apache、MySQL的右邊都是顯示“Started”並亮綠燈的。 
       
      已知問題

1、 若Apache沒有正常運行,可能是因為Apache的預設使用的80連接埠被佔用(Apache連接埠修改方法請繼續往下閱讀…);

2、 若找不到原因,請重新啟動電腦,據說重新啟動電腦可以解決80%的問題,希望你遇到的不是餘下的20%中的…

安裝Mantis

1、 將下載到的mantis-1.1.0a4.rar解壓到mantis檔案夾;

2、 EasyPHP安裝目錄,開啟C:"Program Files"EasyPHP3.1"www"

3、 將mantis檔案夾複製到C:"Program Files"EasyPHP3.1"www"下;

安裝Phpmyadmin

1、 開啟C:"Program Files"EasyPHP3.1

2、 將phpmyadmin檔案夾剪下到C:"Program Files"EasyPHP3.1"www"

建立Bug資料庫

1、 右鍵Windows托盤的 表徵圖,選擇“Local Web”,(或者在IE地址中輸入“http://127.0.0.1/”)可看到如下頁面:

 

 

2、 點擊選擇“mantis”,進入頁面:

 

3、 不用修改/填寫任何值,直接點擊頁面最下方的“Install/Upgrade Database”按鈕 

4、 成功後可看到如下頁面:


² OK,到此為止,Mantis系統已經搭建成功了。下面立刻驗證一下是否已配置成功!

      1、 再次右鍵Windows托盤的 表徵圖,選擇“Local Web”,(或者在IE地址中輸入“http://127.0.0.1/”)可看到如下頁面:


2、 點擊選擇“mantis”(或可省略步驟,直接在IE地址中輸入“http://127.0.0.1/mantis/login_page.php”),進入頁面:

配置完成的Mantis的只有一個預設的系統管理員使用者:

帳號:administrator

密碼:root

 

就這麼簡單,一個Bug管理系統就配置完成了,Mantis已經可以投入使用啦!但——實際使用中還是會有問題產生,如:Mantis配置完成後,預設配置完成的系統是English版本的,且只支援English,不支援Chinese,具體表現在:若在任何一個欄位中輸入中文成功儲存後,再顯示出來就是亂碼(而解決中文顯示亂碼的問題很是棘手,且根據情況的不同解決的方法也不同,在網上搜尋一下就有一大堆。。。),具體解決方案請繼續往下Look……

中文版配置

配置完成時,Mantis預設為English系統,而要使用中文版Mantis則需要修改設定檔。

² 配置方法:

開啟Mantis目錄(C:"Program Files"EasyPHP3.1"www"mantis"),用記事本開啟config_defaults_inc.php檔案,找到如下程式碼片段:

         。。。。。。

# --- language settings -----------

 

# If the language is set to ‘auto‘, the actual

# language is determined by the user agent (web browser)

# language preference.

$g_default_language                = ‘english‘;

。。。。。。

將english  改為chinese_simplified
修改完成後的程式碼片段如下所示:

……

# --- language settings -----------

 

# If the language is set to ‘auto‘, the actual

# language is determined by the user agent (web browser)

# language preference.

$g_default_language                = ‘chinese_simplified‘;

……

 

² 驗證配置是否成功:

再次在IE中登入Mantis系統“http://127.0.0.1/mantis/login_page.php”),進入頁面:

 

 OK,成功了。登入後,也一樣是全中文的介面: 

 

 

區域網路訪問

配置完成時,Mantis預設為只能夠本機訪問,若要在區域網路內訪問則需要修改Apache的設定檔。

² 配置方法:

開啟apache目錄(C:"Program Files"EasyPHP3.1"apache"conf"),用記事本開啟httpd.conf 檔案,找到如下程式碼片段:

         。。。。。。

#

# Listen: Allows you to bind Apache to specific IP addresses and/or

# ports, instead of the default. See also the <VirtualHost>

# directive.

#

# Change this to Listen on specific IP addresses as shown below to

# prevent Apache from glomming onto all bound IP addresses.

#

#Listen 12.34.56.78:80

Listen 127.0.0.1:80

 

。。。。。。

 

在Listen 127.0.0.1:80下一行加入一段代碼 Listen 192.168.1.101:80

:192.168.1.101為Mantis伺服器的IP地址

修改完成後的程式碼片段如下所示:

……

#

# Listen: Allows you to bind Apache to specific IP addresses and/or

# ports, instead of the default. See also the <VirtualHost>

# directive.

#

# Change this to Listen on specific IP addresses as shown below to

# prevent Apache from glomming onto all bound IP addresses.

#

#Listen 12.34.56.78:80

Listen 127.0.0.1:80

Listen 192.168.1.101:80

 

……

 

² 驗證配置是否成功:

在區域網路任一電腦中通過IE登入Mantis系統

http:// 192.168.1.101/mantis/login_page.php即可正常訪問。

 

補充:mantis不使用郵件系統(Email)的配置::

修改設定檔.../mantis/config_inc.php
$g_enable_email_notification = OFF; 儲存、關閉

1、用管理員登入mantis,建立一個使用者,輸入帳號和真實姓名,Email可以隨便填寫,建立使用者,不過此時建立的使用者密碼為空白,可以由建立的使用者登入mantis後自行修改。
2、如果使用者忘記了密碼該怎麼辦?可以讓管理員登入mantis,進入管理--使用者管理--選擇使用者--重設密碼,則該使用者的密碼將被置為空白,由該使用者登入後修改。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.