日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > Ubuntu >内容正文

Ubuntu

Ubuntu 9.10 Server (Karmic) 迁移Bugzilla

發布時間:2025/5/22 Ubuntu 51 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Ubuntu 9.10 Server (Karmic) 迁移Bugzilla 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

項目組去年年底配置了兩臺服務器,其中的一臺安裝了Ubuntu 9.10 Server。由于項目組采用Bugzilla作為bug生命周期的管理,需要把Bugzilla遷移了過來。以下記錄遷移過程備忘。

原服務器 Ubuntu 8.04 Desktop ,? Bugzilla 3.2.2

新服務器 Ubuntu 9.10 Server? , --

參考網上部分方案,打算采用比較穩妥的方式,形成如下思路

1 備份mysql數據庫

? 將數據庫bugs備份到文件bugsdata.sql
??? $mysqldump bugs > bugsdata.sql
??? 再修改bugsdata.sql,在文件頭加兩行
??? create database if not exists bugs;
??? USE bugs;

2 在已安裝mysql的9.10Server上恢復數據庫

?? 此步驟一定在第5步之前,因為Bugzilla的checksetup.pl會自動升級數據庫腳本從3.2.2到3.4.4

?

3 打包Bugzilla 文件夾并恢復到Ubuntu 9.10上? (此步驟瀏覽時報錯,忘了具體錯誤,比較難處理,轉到步驟3)

4 下載最新Bugzilla 3.4.4, 重新編譯。 至于為什么不用ubuntu自帶的Bugzilla以及如何下載編譯配置Bugzilla,請參見這篇博文Ubuntu 8.04 安裝 Bugzilla 3.2.2

?? 為了防止版本文件夾的變化而修改apache虛擬目錄文件,可以創建symbolic link,比如解壓后的文件夾為 Bugzilla_3.4.4 可以用 ln –s Bugzilla Bugzilla_3.4.4 創建名為Bugzilla的symbolic link,在apache虛擬目錄的配置中可以使用該名稱,將來出現新版本只更新Bugzilla的指向即可。

5 運行 ./checksetup.pl 的時候,按照提示下載缺少的部分模塊,總是有3個模塊安裝不上

Checking perl modules...
Checking for DateTime (v0.28) not found
Checking for DateTime-TimeZone (v0.71) not found?
Checking for Template-Toolkit (v2.22) not found

解決方法 sudo apt-get install libmysql++-dev? (參考了ubuntuforums.org里一位老兄的帖子Installing bugzilla and DateTime problem)

6 接下來就是按照提示修改Bugzilla的localconfig

$webservergroup = ‘www-data’;

# 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.

# 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’;
$db_pass = ‘admin’;
注意其中的webservergroup 我設置為了www-data,注意這個是ubuntu的運行apache的用戶組(不同于其他linux發行版的apache用戶組)

7 別忘了在apache下配置該虛擬目錄,ubuntu自帶的apache可以直接修改的/etc/apache2/sites-enabled下面的文件加入

Alias /bugzilla “/var/www/bugzilla″
<Directory? “/var/www/bugzilla″>

Options +ExecCGI
AllowOverride Limit
DirectoryIndex index.cgi
AddHandler cgi-script .cgi
</Directory>
不過我們的服務器使用了自己下載編譯的apache2,因為該服務器還做為svn的源代碼管理服務器。我在ubuntu 9.10 server 下的apache在啟用ssl的時候總是報undefined symbol apr_ldap_ssl_init錯誤,此處我懷疑可能是ubuntu9.10 server的問題,我在虛擬機ubuntu 8.04 desktop下沒有出現此問題。

apache2的安裝目錄更改為/usr/local/apache2,在/usr/local/apache2/conf/httpd.conf中加入上述內容。

關于apache2的下載編譯以及使用ssl的SVN請瀏覽Ubuntu 9.10 Server 配置基于SSL的Subversion

8 sudo /etc/init.d/apache2 restart? (自帶的apache2)

?? 或者
?? cd /usr/local/apache2/bin? (編譯的apache2)
?? sudo ./httpd –k restart

總結

以上是生活随笔為你收集整理的Ubuntu 9.10 Server (Karmic) 迁移Bugzilla的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。