Centos 6.5 install bugzilla 5.0.2

1. Download bugzilla

Download address: https://ftp.mozilla.org/pub/webtools/

Because I searched for "bugzilla cn" on github, I downloaded version 5.0.2 and it showed that there is a Chinese language pack.

Another address with Chinese language pack: https://github.com/hxping7/bugzilla5.0.2_zh-CN

2. Install mysql

1. Query the current version

rpm –qa | grep mysql

[root@hadoop-1 ~]# rpm -qa | grep mysql

mysql-5.1.73-3.el6_5.x86_64

mysql-libs-5.1.73-3.el6_5.x86_64

mysql-server-5.1.73-3.el6_5.x86_64

mysql-connector-odbc-5.1.5r1144-7.el6.x86_64

2. Uninstall the current version

rpm -e or rpm -e --nodeps

3. View the list of installable versions

yum list | grep mysql

clip_image002

4. Install version

yum install -y mysql-server mysql mysql-devel

clip_image004

clip_image006

Check whether the installation is successful through "rpm –qi mysql-server"

clip_image008

5. start mysql

service mysqld start

service mysqld restart

clip_image010

6. Set boot up

Query the startup status: chkconfig --list | grep mysqld

clip_image011

Set boot up: chkconfig mysqld on

clip_image013

7. Configure mysql

After starting the mysql service, you need to set the root password and add other users (about how to set the root password, there is a prompt when the service is started for the first time)

/usr/bin/mysqladmin -u root password 'new-password' // Set a password for the root account

login test

mysql –u root –p

clip_image015

3. 安装httpd服务

详见http://wenhai.iteye.com/blog/2280133第2点“安装httpd服务”。

4. 安装bugzilla

1. root用户登录mysql

mysql –u root –p

clip_image017

2. 创建bugs数据库,并授予root用户权限

create database bugs;

clip_image018

授权:

grant all on bugs.* to root@localhost identified by "root"; #授权

flush privileges; # 刷新

clip_image019

3. 解压bugzilla

tar xf bugzilla-5.0.2_cn.tar.gz -C /var/www/html/

4. 安装perl环境

进入bugzilla目录,执行“perl checksetup.pl”

clip_image021

根据提示安装必须的插件即可。

或者执行“/usr/bin/perl install-module.pl –all”,直接安装所有的必须和可选模块,省去一个一个执行的麻烦(但耗时较长)。

所有插件安装完成之后,在执行“perl checksetup.pl”命令,提示“checksetup.pl complete.”则可进行下一步。

执行报错:

提示’’@’localhost‘对bugs数据库没有权限

进入mysql,执行”grant all on bugs.* ‘’@’localhost’ identity by ‘’;”

5. 设置bugzilla

所有模块安装完成之后,会在bugzilla根目录下生成一个”localconfig”文件,修改其中的数据库相关参数后,再次执行checksetup.pl,输入用户名、邮箱等信息。

clip_image023

6. 的

5. 配置httpd,添加cgi库支持

vi /etc/httpd/conf/httpd.conf

在文件最后,追加以下内容:

<VirtualHost *:80>
     DocumentRoot /var/www/html/bugzilla/
</VirtualHost>
 
<Directory /var/www/html/bugzilla>
     AddHandler cgi-script .cgi
     Options +Indexes +ExecCGI
     DirectoryIndex index.cgi
     AllowOverride Limit FileInfo Indexes
</Directory>

clip_image024

Execute "vi .htaccess" to modify the files in the bugzilla directory, and look at the line "Options -Indexes".

Execute "service httpd restart" to restart the httpd service.

6. Visit bugzilla

http://10.242.130.56:81/bugzilla/

clip_image026

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326183923&siteId=291194637