Windows平台安裝Bugzilla

來源:互聯網
上載者:User

3. 安裝Active Perl

運行ActivePerl-5.8.8.817-MSWin32-x86-257965.msi安裝Perl. 全部選擇預設值即可. 安裝完成後, 用cmd命令進入作業系統的命令列下. 依次輸入如下的命

令:
ppm(斷行符號)
rep add Bugzilla http://landfill.bugzilla.org/ppm(斷行符號)
install AppConfig(斷行符號)
install TimeDate(斷行符號)
install DBI(斷行符號)
install DBD-mysql(斷行符號)
install Template-Toolkit(斷行符號)
install MailTools(斷行符號)
install GD(斷行符號)
install Chart(斷行符號)
install GDGraph(斷行符號)
install PatchReader(斷行符號)

注意上面的install命令需要區分大小, 執行每個install命令可能需要一段時間, 請等待上一個命令執行完看到ppm>提示符後再輸入下一個命令.

4. 配置Bugzilla

用cmd命令進入作業系統的命令列. 然後進入到Bugzilla解壓後的檔案夾下. 這裡假設為C:/Bugzilla. 然後執行perl checksetup.pl(斷行符號). 基本效果如下:

C:/bugzilla>perl checksetup.pl

Checking perl modules ...
Checking for       AppConfig (v1.52)   ok: found v1.55
......................
Checking for     PatchReader (v0.9.4)  ok: found v0.9.5

......................
C:/bugzilla>

命令執行完畢後, 用文本方式開啟Bugzilla目錄下的localconfig檔案(C:/Bugzilla/localconfig).(如果運行前面的perl checksetup.pl沒有成功, 就不會

產生localconfig檔案). 編輯如下的內容:
========================================================================
#
# How to access the SQL database:
#
# 下面設定資料庫的訪問資訊
$db_host = "localhost";         # where is the database?
$db_port = 3306;                # which port to use
$db_name = "bugs";              # name of the MySQL database
$db_user = "bugs";              # user to attach to the MySQL database 前面授權的使用者名稱

#
# Enter your database password here. It's normally advisable to specify
# a password for your bugzilla database user.
# If you use apostrophe (') or a backslash (/) in your password, you'll
# need to escape it by preceding it with a / character. (/') or (//)
# 設定授權使用者的密碼
$db_pass = 'secpsd';
==========================================================================

設定完畢後, 再次進入命令列響應目錄下運行perl checksetup.pl命令.

C:/bugzilla>perl checksetup.pl

Checking perl modules ...
..................

The following Perl modules are optional:
.................

Most ActivePerl modules are available at Apache's ppm repository.
A list of mirrors is available at
    http://www.apache.org/dyn/closer.cgi/perl/win32-bin/ppms/
You can add the repository with the following command:
    ppm rep add apache http://www.apache.org/dist/perl/win32-bin/ppms/

Checking user setup ...
............
Precompiling templates ...
Checking for    MySQL Server (v3.23.41) ok: found v4.0.20a-debug

Creating table user_group_map ...
...........................

Looks like we don't have an administrator set up yet.  Either this is your
first time using Bugzilla, or your administrator's privileges might have
accidently been deleted.

// 注意這裡要求你輸入Bugzilla系統管理員的EMAIL地址(Bugzilla是基於郵件通知的)
Enter the e-mail address of the administrator: byron@example.com

//確認郵件地址
You entered 'byron@example.com'.  Is this correct? [Y/n] y

// 輸入管理員名字
Enter the real name of the administrator: Byron Jones

// 管理員密碼
Enter a password for the administrator account: beef

// 密碼確認
Please retype the password to verify: beef

'byron@example.com' is now set up as an administrator account.

C:/bugzilla>

到此,Bugzilla系統內部的設定基本完成了


5. 配置Bugzilla的Web系統

Bugzilla是基於Web瀏覽,所以需要Web伺服器才能運行,在Windows下可以使用IIS進行管理. 進入控制台, 開啟管理工具找到Internet Information

Server(Internet資訊服務), 如果沒有這個工具說明作業系統還沒有安裝這個工具, 需要在控制台下通過Add/Remove Component(添加刪除群組件) 安裝IIS工

具. 在預設Web網站子項點擊右鍵選擇新鍵虛擬目錄, 在嚮導的第二步中輸入目錄名稱Bugzilla. 然後下一步選擇目錄的路徑, 就Bugzilla的解壓路徑(前面假設

為C:/Bugzilla). 接著下一步的使用權限設定中除了預設的前面兩個選擇外, 還有選擇第三個執行. 然後完成IIS配置的嚮導.

接著在預設Web網站下會多一個我們剛才輸入的虛擬目錄名稱子項. 在它上面點擊右鍵開啟屬性設定對話方塊. 在第二個標籤的文檔中, 選中啟用預設文件, 通過刪

除按紐刪除原來所有的文檔名稱, 然後添加一個名稱為index.cgi的文檔.

回到屬性框的第一個標籤頁虛擬目錄中, 選擇配置按鈕, 開啟應用程式配置對話方塊, 選擇添加按鈕, 在彈出對話方塊設定如下內容:
可執行檔: C:/Perl/bin/perl.exe -xC:/Bugzilla -wT "%s" %s
// 注意上面的路徑需要根據實際情況改變
副檔名: .cgi
動作: 限於----GET,HEAD,POST
最後選中指令碼引擎確定即可.

6. 安裝Bugzilla郵件系統

最後需要安裝的是郵件系統,預設情況下Bugzilla是採用Sendmail進行郵件的發送,我們需要從網上下載sendmail的專門為bugzilla製作的windows安裝版本

sendmail-bugzilla-setup.exe,安裝這個程式後,需要根據實際情況設定郵件伺服器,設定非常的簡單,在安裝完成後的程式目錄下有名稱為sengmail.ini郵

件設定檔,可以設定如下內容:
[sendmail]
; smtp伺服器的地址
smtp_server=192.168.0.251
; 預設的網域名稱,也就是郵件中@字母后的部分
default_domain=system.mail
; 是否開啟錯誤的日誌功能
error_logfile=error.log
; 是否開啟調試日誌功能
;debug_logfile=debug.log
; Bugzilla發送郵件時使用的使用者名稱和密碼
auth_username=Bugzilla
auth_password=Bugzilla
; 設定pop3伺服器,使用者名稱,密碼
pop3_server=192.168.0.251
pop3_username=Bugzilla
pop3_password=Bugzilla

現在所有的功能都安裝完成了,開啟瀏覽器,輸入localhost/bugzilla就可以開始使用bugzilla了。享受吧。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.