歡迎您光臨本站 註冊首頁

ubuntu下安裝配置bugzilla

←手機掃碼閱讀     火星人 @ 2014-03-26 , reply:0

我們需要建一個自己的bug管理系統,我就自己動手自己安裝bugzilla了,在安裝之前我在網上google了一下,看了一個網友的安裝心得,不過基本上沒有在ubuntu/debian上安裝的。我就自己試著開始了。

不多說了:

sudo apt-get install mysql-server注意:需要設置mysql的root 用戶的密碼,注意要和以後的bugzilla的管理員密碼一致

sudo apt-get install bugzilla按照需要輸入管理員帳號,密碼

ubuntu把需要的apache,sendmail,還有那些依賴的perl模塊都一起安裝了.

開始配置bugzilla

配置apache2
vi /etc/apache2/httpd.conf 添加
ServerNmae localhost:80
sudo /etc/init.d/apache2 restart
配置bugzilla
vi /etc/bugzilla/localconfig
修改相應的配置:
$webservergroup = "www-data";

#
# 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
#
# Some people actually use passwords with their MySQL database ...
#
$db_pass = "1234";

#
# Should checksetup.pl try to check if your MySQL setup is correct?
# (with some combinations of MySQL/Msql-mysql/Perl/moonphase this doesn't work)
#
$db_check = 1;
$index_html = 1;

配置資料庫:
mysql -u root -p1234

Create database bugs;

GRANT SELECT, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES,CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.* TO bugs@localhost IDENTIFIED BY '1234';

Flush privileges;
quit;

退出資料庫;

重新生成bugzilla資料庫;
cd /usr/share/bugzilla/lib/
sudo perl checksetup.pl
根據提示輸入

注意:在ubuntu上安裝的bugzilla的主登錄窗口有點bug,需要從頁面地下的login按鈕進入就可以了。

[火星人 ] ubuntu下安裝配置bugzilla已經有792次圍觀

http://coctec.com/docs/linux/show-post-180183.html