Ubuntu11 10上的bugzilla搭建

2021-06-07 13:22:58 字數 2269 閱讀 6470

備註:通過ubuntu的apt-get可以安裝bugzilla3,但本人最終沒有用bugzilla3,而是用最新的bugzilla4.2.1。

將bugzilla解壓至/usr/share/bugzilla4:

#sudo tar -c /usr/share/bugzilla4 -zxvf bugzilla-4.2.1.tar.gz

#cd /usr/share/bugzilla4

#./checksetup.pl --check-modules

檢視有哪些perl模組未安裝。按照其提示安裝必選模組。

安裝完成必選perl模組後,執行:

#./checksetup.pl

如果執行成功,會在當前目錄下生成localconfig檔案。

修改localconfig檔案:

$webservergroup = 'www-data';

#sudo apt-get install mysql-server

localconfig中,預設的mysql資料庫名稱為bugs,使用者名為bugs,密碼為空:

# the name of the database. for oracle, this is the database's sid. for

# sqlite, this is a name (or path) for the db file.

$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 (\)

# (it is far ******r to just not use those characters.)

$db_pass = '';

所以我們需要新增乙個bugs的mysql資料管理員使用者,並建立乙個名為bugs的資料庫來儲存bugzilla提交的bugs:

#mysql -u root -p

輸入root密碼,進行mysql命令列介面:

mysql->grant all on *.* to bugs@localhost identified by '';

mysql->flush privileges;

mysql->create database bugs;

mysql->exit;

#sudo apt-get install apache2

在/etc/apache2/conf.d目錄下增加乙個vhost配置:

#alias /bugzilla4 /usr/share/bugzilla4

addhandler cgi-script cgi

directoryindex index.cgi

options +indexes +execcgi -multiviews +symlinksifownermatch +followsymlinks

allowoverride none

order allow,deny

allow from all

options +followsymlinks -indexes

allowoverride none

order allow,deny

allow from all

options +followsymlinks -indexes

allowoverride none

order allow,deny

allow from all

options +followsymlinks -indexes

allowoverride none

order allow,deny

allow from all

#這樣就可以用http://server/bugzilla4來訪問bugzilla了。

如果碰到中文亂碼,可以這樣解決:

vim/usr/share/perl5/bugzilla/cgi.pm,

強制設定utf-8:self->charset(''utf-8'')

ubuntu11 10下修改tooltip的顏色

ubuntu11.10沒有了自定義修改主題顏色的介面,導致eclipse裡面的彈出框顏色無法直接修改。預設如下一坨黑什麼也看不見 在ubuntu11.10之前可以通過 系統設定 外觀 修改主題裡面的tooltip自定義顏色來實現。但11.10下面沒有這個ui了,只能直接修改檔案 tooltip fg...

ubuntu11 10 安裝google拼音

在ubuntu 11.10 下安裝google拼音輸入法 其實就是scim的擴充套件 如下 a.獲取 沒有git的先安裝git sudo apt get install git core git clone git cd scim googlepinyin b.編譯前提 上面給的鏈結裡面有介紹怎麼編...

Ubuntu11 10 解壓 RAR 檔案

ubuntu預設不能解壓rar檔案,ubuntu11.10也一樣,所以我們需要安裝軟體來支援。壓縮功能 安裝 sudo apt get install rar 解除安裝 sudo apt get remove rar 解壓功能 安裝 sudo apt get install unrar 解除安裝 s...