標籤:
1. 下載bugzilla
:https://ftp.mozilla.org/pub/webtools/
因為我在github上搜了一下“bugzilla cn”提示有中文語言套件就下了5.0.2版本。
另一個帶中文語言套件的地址:https://github.com/hxping7/bugzilla5.0.2_zh-CN
2. 安裝mysql
1. 查詢目前的版本
rpm –qa | grep mysql
[[email protected] ~]# rpm -qa | grep mysql
mysql-5.1.73-3.el6_5.x86_64
mysql-libs-5.1.73-3.el6_5.x86_64
mysql-server-5.1.73-3.el6_5.x86_64
mysql-connector-odbc-5.1.5r1144-7.el6.x86_64
2. 卸載目前的版本
rpm –e 或者 rpm –e --nodeps
3. 查看可安裝版本列表
yum list | grep mysql
4. 安裝版本
yum install -y mysql-server mysql mysql-devel
通過“rpm –qi mysql-server”查看是否安裝成功
5. 啟動mysql
service mysqld start
service mysqld restart
6. 設定開機啟動
查詢開機啟動狀態:chkconfig --list | grep mysqld
設定開機啟動:chkconfig mysqld on
7. 配置mysql
啟動mysql服務後,需要設定root密碼和增加其他使用者(關於如何設定root密碼,在服務第一次啟動時有提示)
/usr/bin/mysqladmin -u root password ‘new-password‘ // 為root帳號設定密碼
登入測試
mysql –u root –p
3. 安裝httpd服務
詳見http://wenhai.iteye.com/blog/2280133第2點“安裝httpd服務”。
4. 安裝bugzilla
1. root使用者登入mysql
mysql –u root –p
2. 建立bugs資料庫,並授予root使用者權限
create database bugs;
授權:
grant all on bugs.* to [email protected] identified by "root"; #授權
flush privileges; # 重新整理
3. 解壓bugzilla
tar xf bugzilla-5.0.2_cn.tar.gz -C /var/www/html/
4. 安裝perl環境
進入bugzilla目錄,執行“perl checksetup.pl”
根據提示安裝必須的外掛程式即可。
或者執行“/usr/bin/perl install-module.pl –all”,直接安裝所有的必須和可選模組,省去一個一個執行的麻煩(但耗時較長)。
所有外掛程式安裝完成之後,在執行“perl checksetup.pl”命令,提示“checksetup.pl complete.”則可進行下一步。
執行報錯:
提示’’@’localhost‘對bugs資料庫沒有許可權
進入mysql,執行”grant all on bugs.* ‘’@’localhost’ identity by ‘’;”
5. 設定bugzilla
所有模組安裝完成之後,會在bugzilla根目錄下產生一個”localconfig”檔案,修改其中的資料庫相關參數後,再次執行checksetup.pl,輸入使用者名稱、郵箱等資訊。
6. 的
5. 配置httpd,添加cgi庫支援
vi /etc/httpd/conf/httpd.conf
在檔案最後,追加以下內容:
<VirtualHost *:80>
DocumentRoot /var/www/html/bugzilla/
</VirtualHost>
<Directory /var/www/html/bugzilla>
AddHandler cgi-script .cgi
Options +Indexes +ExecCGI
DirectoryIndex index.cgi
AllowOverride Limit FileInfo Indexes
</Directory>
執行”vi .htaccess”修改bugzilla目錄下的檔案,注視掉“Options –Indexes”這一行。
執行”service httpd restart”重啟httpd服務。
6. 訪問bugzilla
http://10.242.130.56:81/bugzilla/
Centos 6.5安裝bugzilla 5.0.2