您的位置:首页 > 运维架构 > Linux

Centos 6.5安装bugzilla 5.0.2

2016-06-08 10:48 375 查看
1.下载bugzilla

下载地址:https://ftp.mozilla.org/pub/webtools/

因为我在github上搜了一下“bugzillacn”提示有中文语言包就下了5.0.2版本。

另一个带中文语言包的地址:https://github.com/hxping7/bugzilla5.0.2_zh-CN

2.安装mysql

1.查询当前版本

rpm–qa|grepmysql

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

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.卸载当前版本

rpm–e或者rpm–e--nodeps

3.查看可安装版本列表

yumlist|grepmysql





4.安装版本

yuminstall-ymysql-servermysqlmysql-devel









通过“rpm–qimysql-server”查看是否安装成功





5.启动mysql

servicemysqldstart

servicemysqldrestart





6.设置开机启动

查询开机启动状态:chkconfig--list|grepmysqld





设置开机启动:chkconfigmysqldon





7.配置mysql

启动mysql服务后,需要设置root密码和增加其他用户(关于如何设置root密码,在服务第一次启动时有提示)

/usr/bin/mysqladmin-urootpassword'new-password'//为root账号设置密码

登录测试

mysql–uroot–p





3.安装httpd服务

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

4.安装bugzilla

1.root用户登录mysql

mysql–uroot–p





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

createdatabasebugs;





授权:

grantallonbugs.*toroot@localhostidentifiedby"root";#授权

flushprivileges;#刷新





3.解压bugzilla

tarxfbugzilla-5.0.2_cn.tar.gz-C/var/www/html/

4.安装perl环境

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





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

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

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

执行报错:

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

进入mysql,执行”grantallonbugs.*‘’@’localhost’identityby‘’;”

5.设置bugzilla

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





6.的

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

vi/etc/httpd/conf/httpd.conf

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

<VirtualHost*:80>

DocumentRoot/var/www/html/bugzilla/

</VirtualHost>


<Directory/var/www/html/bugzilla>

AddHandlercgi-script.cgi

Options+Indexes+ExecCGI

DirectoryIndexindex.cgi

AllowOverrideLimitFileInfoIndexes

</Directory>





执行”vi.htaccess”修改bugzilla目录下的文件,注视掉“Options–Indexes”这一行。

执行”servicehttpdrestart”重启httpd服务。

6.访问bugzilla

http://10.242.130.56:81/bugzilla/



内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: