1、Bugzilla安装配置 1.将需要的安装包共享到ip为192.168.9.11的jdk文件夹。在使用samba在linux下共享 并复制root下 2.安装mysql rpm -ivh MySQL-server-4.0.21-0.i386.rpm rpm -ivh MySQL-client-4.0.21-0.i386.rpm rpm -ivh MySQL-devel-4.0.21-0.i386.rpm mysql-server必须先安装 3.将共享下的bugzilla-2.18rc2.tar.gz压缩包解压安装 Tar zxvf bug
2、zilla-2.18rc2.tar.gz 拷贝bugzilla到var/www/html/下并改名为bugzilla:mv bugzilla-2.18rc2 var/www/html/bugzilla 4.perl模块安装(按先后顺序安装) 将共享文件夹jdk下perl的.gz文件copy到/root下 解压: Tar zxvf 压缩包名.gz 每装好一个模块后都需要验证是否成功安装 (template模块安装时有交互式提问): 进入相应的生成的文件夹 Cd 文件夹名 Perl Makefile.PL Make
3、Make test Make install 安装模块顺序如下: 4.1 AppConfig 4.2 CGI 4.3 Date::Format(文件TimeDate-1.16.tar.gz解压) 4.4 DBI 4.5 执行unset LANG后再执行DBD的perl脚本和make 4.6 gd(执行./configure,make,make check,make install) 4.7 GD 4.8 Template(Template-Toolkit-2.14.tar.gz解压) 4.8.1:Do you want to run
4、 the DBI tests? It requires access to an existing test database. [y] 4.8.2:Enter driver name: [mysql] 以上按回车即可 4.8.3: Database name: [test] bugs Enter user name : [] bugs Enter password : [] 123 以上输入mysql的数据库数据库名、用户名、密码,需要与配置mysql保持一致 4.8.4:
5、 Do you want to build the XS Stash module? [y] Do you want to use the XS Stash for all Templates? [y] Do you want to enable the latex filter? [n] Do you want to install these components? [y] Installation directory [/usr/local/tt2] UR
6、L base for TT2 images? [/tt2/images] Do you want to build the HTML documentation? [y] Do you want to use the Splash! library? [y] Enter name of colour scheme: [default] Do you want to build the HTML example pages? [y] 以上问题全部按回车默认即可
7、
5.配置mysql
创建bugs数据库及用户:create database bugs;
给bugs用户赋予对数据库操作的权限:grant all on bugs.* to bugs@localhost identified by '123';
注:每行命令后加“;”号
6. bugzilla相关配置
1)Apache配置
修改/etc/httpd/conf/httpd.conf
增加如下代码
#/var/www/html/bugzilla为bugzilla所在路径
8、s ExecCGI FollowSymLinks AllowOverride Limit Order allow,deny Allow from all 将如下屏蔽放开 #AddHandler cgi-script .cgi 改为 AddHandler cgi-script .cgi 2)将bugzilla目录的操作权限赋予apache用户 chown -R apache.apache /var/www/html/bugzilla 以上两步是对访问权限的控制,不执行或执行错误可能导致
9、客户端IE不能正常访问bugzilla,提示404或forbidden 3)修改bugzilla目录下的localconfig文件如下内容 Index_heml=1; $db_pass='123'--与配置MySql-grant时的密码一致 退出保存:wq 注意:bugzilla目录下的localconfig文件在第perl模块安装完后才有的,这时候才在该文件里配置。若没有该文件可能是Template(Template-Toolkit-2.14.tar.gz解压)模块安装不成功,重新安装。 7. 运行bugzilla目录下的checksetup.pl,执
10、行./checksetup.pl或perl checksetup.pl 步骤4安装通过后,checksetup会自动执行如下操作 Checking user setup ... Creating index.html... Removing existing compiled templates ... Precompiling templates ... Checking for MySQL Server (v3.23.41) ok: found v4.0.21-standard Creating table use
11、r_group_map ... 执行过程中输入邮件名、操作系统用户名、密码、确认密码即可 Enter the e-mail address of the administrator: root@localhost.localdomain You entered 'root@localhost.localdomain'. Is this correct? [Y/n] y Enter the real name of the administrator: root Enter a password for the administrator account: Please retype the password to verify: 8.在任一浏览器中打开http://192.168.9.12/bugzilla Linux浏览器下: Windows server 2003下面






