安裝步驟
以下步驟都是在Windows系統中進行安裝的。
一、軟件準備
1、從http://www.apachefriends.org/zh_cn/xampp.html下載xampp的最新版。
2、從http://www.mantisbt.org/download.php下載Mantis的最新版
二、安裝XAMPP
1、雙擊xampp-win32-1.7.4-VC6-installer.exe執行,一路默認。
2、打開XAMPP面板,啓動Apache和mysql。
如果Apache啓動失敗,是由於安裝了其它的WEBService導致80端口被佔用,需要修改Apache的config文件。請修改C:\xampp\apache\conf\httpd.conf(安裝目錄)文件中“Listen 80”和“ServiceName localhost:80”中的端口80爲其他值,如8888。
監聽端口443衝突,解決方法: 打開安裝目錄\xampp\apache\conf\extra下的httpd-ssl.conf文件。將Listen 443這句註釋掉,如“# Listen 443”,或將443改爲4433或其它數字。 保存,重啓xampp。
3、訪問http://localhost:8888。打開xampp頁面,在彈出的頁面中,選擇“中文”。進入管理頁面。
4、進入頁面後,選擇左則導航“安全” 。點擊http://localhost/security/xamppsecurity.php設定MYSQL的ROOT密碼,如talent。
三、安裝Mantis
1、解壓mantisbt-1.2.5.zip,重命名爲mantis,剪切到C:\xampp\htdocs\目錄下。
2、在C:\xampp\mysql\data\文件夾下新建bugtracker文件夾
3、在C:\xampp\apache\conf\ httpd.conf文件中,加入
Alias /mantis "c:/xampp/htdocs/mantis"
<Directory /mantis/>
Options Indexes
AllowOverride None
Order allow,deny
Allow from all
</Directory>
4、在地址欄中輸入http://localhost:8888/mantis/,進入Mantis安裝頁面
文本框中的默認信息不要動 。
在“Password (for Database)”欄目中輸入剛修改的ROOT密碼。
“Admin Username (to create Database if required)”欄目輸入root,
“Admin Password (to create Database if required)”輸入ROOT密碼,如talent。
點擊“Install/Upgrade Database”進行安裝。
安裝完成後,右側標籤全爲綠色GOOD。
5、再次在地址欄中輸入http://localhost:8888/mantis 進入Mantis登錄頁面。
初始用戶名爲“administrator”,密碼爲“root”, Mantis安裝完成。
6、漢化
打開安裝目錄:\xampp\htdocs\mantis\config_defaults_inc.php文件, 修改$g_default_language = 'english'; 爲$g_default_language = 'chinese_simplified';
7、時間設置
使用個人賬戶登錄系統後,可在【個人資料】->【更改個人設置】,在“時區”選項中選擇”shanghai”。此種方法需要每個賬戶自行修改。
FAQ:
1、新建賬戶時無法設置賬戶登錄密碼。
在Mantis目錄下config_defaults_inc.php文件中找到$g_send_reset_password,然後設置:$g_send_reset_password =OFF 即可。重新使用administrator賬號及密碼,登錄mantis, 依次選擇 管理 -> 用戶管理 -> “創建用戶”, 即可看到填寫密碼的輸入框。
2、用戶管理中重設密碼爲將密碼重置爲空。
新建用戶時設置了其用戶名和密碼。在Administrator用戶管理中,點擊“重設密碼”後,該用戶密碼被置爲空。使用該用戶名登錄系統時無需再輸入密碼