常用软件:Bugzilla的搭建(转)

1.安装依赖包
yum -y install php perl httpd mod_ssl mysql-server mysql-devel mysql php-mysql gcc mod_perl-devel perl-parent wget
2.启动服务
[root@localhost ~]# service httpd start ##启动httpd
[root@localhost ~]# chkconfig httpd on ##添加2345级别启动
[root@localhost ~]# service mysqld start ##启动mysql数据库
[root@localhost ~]# chkconfig mysqld on ##添加2345级别启动

3.配置数据库
[root@localhost ~]# mysqladmin -uroot -p password "666666" ##将mysql,root用户密码修改为666666,默认为空。
[root@localhost ~]# mysql -uroot -p666666
mysql> create database bugs;
mysql> grant all on bugs.* to root@localhost identified by "666666"; ##授权root用户密码为666666
mysql> flush privileges; ##刷新权限

4.安装Bugzilla
[root@localhost opt]# wget https://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-5.0.3.tar.gz ##下载bugzilla源码包
[root@localhost opt]# tar xf bugzilla-5.0.3.tar.gz -C /var/www/html/
[root@localhost html]# cd bugzilla/                                          ##切换到bugzilla目录
[root@localhost bugzilla]# ./checksetup.pl --check-modules       ##检查缺少那些组件
[root@localhost bugzilla]# perl install-module.pl --all                 ##执行此命令安装缺少的组件
[root@localhost bugzilla]# ./checksetup.pl                                ##运行命令在bugzilla下生成localconfig的文件
[root@localhost bugzilla]# vi localconfig                                    ##localconfig中所输入的数据库名、用户和密码是否正确
50 $db_driver = 'mysql';
53 $db_host = 'localhost';
57 $db_name = 'bugs';
60 $db_user = 'root';
67 $db_pass = '666666';
73 $db_port = 3306;
[root@localhost bugzilla]# ./checksetup.pl ##再次执行此命令根据提示输入管理员邮箱及密码

5.配置文件
[root@localhost bugzilla]# vi /etc/httpd/conf/httpd.conf

[root@localhost bugzilla]# vi .htaccess #编辑 .htaccess 用“#”注释掉顶部“Options -Indexes”这一行。
[root@localhost bugzilla]# service httpd restart #重新启动httpd服务,就可以通过浏览器访问

6.配置邮件服务
[root@localhost ~]# yum -y install sendmail mail     ##安装sendmail
[root@localhost ~]# service sendmail start            ##启动sendmail
我使用的是163邮件,所以设置mail使用163代理发邮件只需要在 /etc/mail.rc 最后添加两行即可,如下

[root@localhost ~]# echo adminwangenzhi|mail -s test XXXX@163.com ##测试是否可以收到邮件
----------------------------------------------------------------------------------------------
【推荐】也可以通过bugzilla自带的邮件服务
[root@localhost ~]# cd /var/www/html/bugzilla/data/ ##切换到bugzilla下的data目录中
[root@localhost data]# vim params                       ##修改如下红色内容
'mail_delivery_method' => 'SMTP',
'mailfrom' => 'bugzillatrace@163.com',                  ###mailfrom要和maintainer保持一致,为bugzilla发送人地址。需要说明的是163的邮箱需要去163开通授权
'maintainer' => 'bugzillatrace@163.com',
'smtp_password' => '######',                            ###在163页面授权时的设置的密码,也是邮箱密码
'smtp_ssl' => 0,
'smtp_username' => 'bugzillatrace@163.com',      ###发送人邮箱
'smtpserver' => 'smtp.163.com:25',                       ####服务代理
'ssl_redirect' => 0,
'sslbase' => '',
'strict_isolation' => 0,
'strict_transport_security' => 'off',
'timetrackinggroup' => 'editbugs',
'upgrade_notification' => 'latest_stable_release',
'urlbase' => 'http://192.168.69.20/',                     ###bugzilla访问地址
'use_mailer_queue' => 1,                                      ###设置为1,若不行请改为0

[root@localhost data]# service httpd restart       ##重新启动httpd
[root@localhost data]# service sendmail restart ##重新启动sendmail

7.163邮箱页面授权

8.汉化请自行baidu  

5.02有繁体包,没有简体,,5.03没有汉化包

posted on 2016-07-25 18:01  baxk2001  阅读(593)  评论(0编辑  收藏  举报

导航