Windows平臺安裝Bugzilla(下)
前部分內容
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: [email protected]
//確認郵件地址
You entered '[email protected]'. 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
'[email protected]' 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了。享受吧!
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: [email protected]
//確認郵件地址
You entered '[email protected]'. 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
'[email protected]' 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了。享受吧!
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.