1,yum install bugzilla
2,cd /usr/share/bugzilla
3,./checksetup.pl --check-modules
4,./install-module.pl --all #install all modules
5 ./checksetup.pl #generate /etc/bugzilla/localconfig
6 modify database items in localconfig, such as $db_pass
7 modify mysql with /etc/my.cnf
[mysqld]
# Allow packets up to 4MB
max_allowed_packet=4M
# Allow small words in full-text indexes
ft_min_word_len=2
8 start mysql & add user
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES, CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.* TO bugs@localhost IDENTIFIED BY 'unitcc123'; #passwd is unitcc123
mysql> FLUSH PRIVILEGES;
9 ./checksetup.pl #again, with [email protected] unitcc123
10 modify table attachments
mysql> use bugs
mysql> ALTER TABLE attachments AVG_ROW_LENGTH=1000000, MAX_ROWS=20000;
11,set web server, modify /etc/httpd/conf/httpd.conf
1) insert the following lines after "Group apache"
PerlSwitches -I/usr/share/bugzilla -w -T
PerlConfigRequire /usr/share/bugzilla/mod_perl.pl
2) disabled KeepAlive support
12, yum install mod_perl.i686 #perl module for apache
13,download bugzilla.zh-TW.3.6.4.20110213.tar.gz and replace /usr/share/bugzilla/template/en
14, start httpd service
--------------------------------------------------------------------------
修改bugzilla的IP地址:
機器IP地址改變後,用戶登陸時會跳到老的地址上去。沒找到修改urlbase參數的辦法,也沒找到urlbase的存儲位置;最後直接輸入參數設置頁面的地址http://192.5.1.237/bugzilla/editparams.cgi?section=core#urlbase,直接修改,此時會提示登陸,使用root登陸後保存urlbase修改,成功。