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修改,成功。