在linux系统安装Bugzilla

本文提供了一个详细的步骤来安装Bugzilla缺陷跟踪系统。包括配置Linux网络、安装MySQL数据库、Apache服务器及mod_perl,并最终完成Bugzilla的安装配置过程。

1。 检查网络配置

参考《鸟哥的Linux私房菜》25章

 

ifconfig -a

 

重启网络设定

 

/etc/rc.d/init.d/network restart

 

2。 安装MySql

 

 

Installed Version Test:

mysql -V

安装如下rpms
MySQL-devel-5.5.12-1.linux2.6.i386.rpm
MySQL-server-5.5.12-1.linux2.6.i386.rpm
MySQL-shared-5.5.12-1.linux2.6.i386.rpm
MySQL-shared-compat-5.5.12-1.linux2.6.i386.rpm
MySQL-client-xxx.rpm

 

 

3. 1 若已经安装apache server

 

配置文件  /etc/httpd/conf/httpd.conf

启动apache server:  service httpd restart

 

3.2 安装Apache server

 

参考:http://lamp.linux.gov.cn/Apache/ApacheMenu/install.html

 

下载$ lynx http://httpd.apache.org/download.cgi
解压$ gzip -d httpd-NN.tar.gz
$ tar xvf httpd-NN.tar
$ cd httpd-NN
配置$ ./configure --prefix=PREFIX
编译$ make
安装$ make install
配置$ vi PREFIX/conf/httpd.conf
测试PREFIX/bin/apachectl -k start

 

如果没有指定PREFIX,默认会装到/usr/local/apache2

 

安装mod_perl:

参考: http://perl.apache.org/

 

 

 

4. 安装Bugzilla

将bugzilla tar 解压到/var/www/html/ 下, (此目录为apache server的文档目录)

进入Bugzilla目录,用root执行

 

./checksetup.pl --check-modules
如果有perl module缺失,运行
/usr/bin/perl install -module.pl --all
如果需要代理服务器才能下载更新perl modules, 请先设置CPAN的proxy

 

4.2 如果遇到这样的提示

Can't locate Module/Datetime.pm in @INC 

意味着Perl模块没有安装全, 可以用CPAN来安装缺失的模块

# perl -MCPAN -e- 'install Module::Build'

 

如果系统上很多模块都已经很旧了,用这个命令来自动更新

# /usr/local/bin/perl -MCPAN -e 'CPAN::Shell->install(CPAN::Shell->r)'

 

 

5. 再次执行

# ./checksetup.pl
它产生一个配置文件  ./localconfig

6. 修改 ./localconfig
$db_driver = 'mysql'
$db_pass = ‘Bugs4all'

7. 在mysql上创建用户密码
# mysql -u root -p

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

mysql> FLUSH PRIVILEGES;
8. 再次运行
# ./checksetup.pl
这次会创建Bugzilla的database
9. 执行的最后会让你创建管理员账号

Looks like we don't have an administrator set up yet. Either this is
your first time using Bugzilla, or your administrator's privileges
might have accidentally been deleted.

Enter the e-mail address of the administrator: j131wang@xxx.com
Enter the real name of the administrator: Jason Wang
Enter a password for the administrator account: nsn123
Please retype the password to verify: welcome
ramesh@4medica.com is now set up as an administrator.
Creating default classification 'Unclassified'...
Creating initial dummy product 'TestProduct'...

Now that you have installed Bugzilla, you should visit the 'Parameters'
page (linked in the footer of the Administrator account) to ensure it
is set up as you wish - this includes setting the 'urlbase' option to
the correct URL.
10. 配置mod_perl

Rename the bugzilla directory. (i.e remove the version number in it)

# cd /var/www/html

# mv bugzilla-3.4.6/ bugzilla

Add the following two lines to httpd.conf

# tail -2 /etc/httpd/conf/httpd.conf
PerlSwitches -I/var/www/html/bugzilla -I/var/www/html/bugzilla/lib -w -T
PerlConfigRequire /var/www/html/bugzilla/mod_perl.pl

Verify the Group in httpd.conf matches the webservergroup in localconfig

# cd /var/www/html/bugzilla/

# grep webservergroup localconfig
$webservergroup = 'apache';

# grep Group /etc/httpd/conf/httpd.conf
Group apache
11. 最后一次执行checksetup.pl 
12。 重启apache server
# service httpd restart
13. 访问 http://{your-ip-address}/bugzilla

14. Reference: 
http://www.thegeekstuff.com/2010/05/install-bugzilla-on-linux/
http://www.51testing.com/html/25/n-91725.html

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值