歡迎大家訪問我的博客:http://blog.sina.com.cn/s/blog_65f374fa0100o1wz.html
在Windows XP下安裝基於IIS的Bugzilla的詳細步驟
經過半天的實驗,終於將Bugzilla安裝成功,老師給的參考網頁,不是很詳細,沒有操作圖片且部分有錯誤,現將我的操作過程分享一下,希望對大家有所幫助:
一、安裝mysql:過程略 可以直接使用老師安裝好的,只需要刪除bugs表即可
二、刪除老師創建的bugs表(重新安裝mysql的無此步)
進入mysql客戶端:點擊程序,選擇mysql的客戶端,輸入密碼:123456(看自己所設)
執行如下命令:
show databases;
drop database bugs;
如圖:
然後,我們需要在mysql中創建Bugzilla的用戶以及數據庫,主要三條命令爲:
a、建立數據庫bugs
create database bugs;
b、建立用戶bugs,密碼爲空,對Bugs數據庫具有一定權限
grant select,insert,update,delete,index,alter,create,lock tables,drop,references on *.* to bugs@"%" Identified by ""; //參考文獻有錯誤!
c、從mysql數據庫授權表中重新裝載權限。 flush privileges;
結果如圖:(這裏我們建立的數據庫名爲Bugs,數據庫用戶名爲Bugs,密碼爲空)
二、安裝Activeperl。
雙擊ActivePerl-5.12.2.1202-MSWin32-x86-293621中Installer批處理文件,結果如圖:
在鍵盤上上敲兩次“yes” 後一直回車即可!它會自動安裝到C:\perl目錄。同時在系統變量Path中增加自己的C:\perl\bin路徑信息。
安裝過程中:
三、安裝、配置WEB服務器。
針對IIS已經安裝好的:
將鼠標指到我的電腦圖標,單擊右鍵,選擇 管理,選擇 服務和應用程序,選擇 Internet信息服務選擇 默認web站點,單擊右鍵,選擇屬性 到達下圖:
選擇擴展名爲.cgi的目錄 單擊編輯按鈕 將動作限於GET,HEAD,POST如圖:
2.選擇文檔目錄如圖:
單擊添加按鈕 將index.cgi添加爲默認文檔,如圖;
單擊確定,配置完畢。
四、Perl腳本的安裝以及Bugzilla的初步配置。 1、運行該腳本的方法是: 在命令行下進入Bugzilla的主目錄,鍵入:perl checksetup.pl,運行後如圖: 2、初次運行的時候,系統首先會驗證perl模塊是否足夠,一般會缺少比較多的perl模塊。如果我們是單獨下載的每個perl模塊進行安裝,則需要使用ppm install <perl模塊名.ppd>進行。將not found的模塊安裝:(不安裝也可以,該版本)如圖: 前面設置的密碼爲空,所以我們不用操作這步: ****************************************************************************************** 3、當插件安裝完後,再次運行perl checksetup.pl,系統會生成localconfig文件,此文件是包含了Bugzilla的一些配置信息,如果您的mysql安裝到C:\mysql,所創建的數據庫名稱爲bugs數據庫用戶爲bugs,密碼爲空,那麼不需要對localconfig文件進行任何修改,否則需要對localconfig的相應條目進行修改。 # What SQL database to use. Default is mysql. List of supported databases # can be obtained by listing Bugzilla/DB directory - every module corresponds # to one supported database and the name corresponds to a driver name. $db_driver = 'mysql'; # The DNS name of the host that the database server runs on. $db_host = 'localhost'; # The name of the database $db_name = 'bugs'; # Who we connect to the database as. $db_user = 'bugs'; # 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 (\) # (Far simpler just not to use those characters.) $db_pass = ''; # Sometimes the database server is running on a non-standard port. If that's # the case for your database server, set this to the port number that your # database server is running on. Setting this to 0 means "use the default # port for my database server." $db_port =3306; ***************************************************************************************
4、修改好localconfig文件,再次運行perl checksetup.pl,如果不出意外的話,會順利編譯模板,然後建立數據庫,最後提示輸入超級用戶信箱、用戶姓名以及口令。輸入後,Bugzilla基本安裝完成,可以從web上來進行訪問了。如圖: 輸入SMTP server 我輸得是我的郵箱(應該不對,估計沒什麼影響!) OK! 五、IE中輸入http://localhost/Bugzilla/可以訪問bugzilla 顯示上面界面就登陸成功了! 對於使用方法,我暫時還不是很瞭解等琢磨一陣子再說吧! 終於寫完了,啊 ?1點16了。。。 希望對大家有所幫助!睡覺了。。。。
Bugzilla爲我們準備了一個很好的腳本文件checksetup.pl來進行配置,我們隨時可以運行chekcsetup.pl文件來進行服務器配置而不會對Bugzilla系統造成任何影響。