CentOS6.4Bugzilla 配置指南

CentOS6.4Bugzilla 配置指南

 

在进行CentOS安装的时候,选择了Desktop版本,并且默认安装了Perl模块和电子邮件服务器

 

1.      Apache

CentOS6.4 桌面版本Apache是自带的,如果不是自带的建议使用yum install apache,否则后续的工作中会缺少模块,安装比较麻烦。

 

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

1.(修改,根据具体情况而定)Listen8080

2.(默认) Userapache /Group apache 注意和bugzilla的配置对应

3.(默认) <Directory"/var/www/html"> 决定了bugzilla解压位置

4.(添加cgi配置)

<Directory  /var/www/html/bugzilla>

AddHandler cgi-script .cgi

Options +ExecCGI

DirectoryIndex index.cgi index.html

AllowOverride Limit FileInfo Indexes Options

</Directory>

   

 

         服务管理(service httpdstart/stop/restart)

 

2.      Mysql

可以在安装系统的时候选择安装mysql,或者使用yum  install mysql  然后 yum install mysql-server 安装这样的话配置的话会相对的容易一些。

 

配置文件(etc/my.cnf)

1.(添加)max_allowed_packet=12M

 

服务管理(service mysqldstart/stop/restart)

 

3.       Perl

          CentOS已经默认安装了,这里不再需要

 

4.      Bugzilla

1.      将Bugzilla解压到 /var/www/html中的bugzilla文件夹之中

2.      进入bugzilla目录运行 ./checksetup.pl –check –modules 查看缺失模块

                   因为GD模块需要预先安装gd-devel模块,所以这里预先 yum -y install gd-devel;

                  使用下面的命令 mod-perl 模块也是无法安装的,所以这里预先 yum -y install mod_perl;

         运行 /usr/bin/perlinstall-module.pl –all(进行缺失模块的安装等价于 perl –MCPAN –e  ‘install  “Bundle:Bugzilla” ’) 安装其他没有安装的模块

3.      重新运行./checksetup.pl –check –modules 查看不能自动安装的模块进行手动安装

        ***关于Apache:SizeLimit一直提示安装未成功不清楚是什么原因,但是这个模块不安装不影响使用。。。。。。

4.      bugzilla 目录下 运行checksetup.pl生成localconfig配置文件

5.      修改bugzilla配置文件 localconfig(/var/www/html/bugzilla/localconfig)

         $webservergroup = 'apache';

         $db_driver = 'mysql';

         $db_host = 'localhost';

         $db_name = 'bugs';

         $db_user = 'root';

         $db_pass = '';

         $db_port = 3306;

         $db_check = 0;(注意否则模块缺失情况下不会验证通过)

6.     mysql 建立bugs数据库 create database bugs;

7.      运行 ./checksetup.pl 进行数据库的建立,注意$db_user需要有权限操作数据库

6.      Bugzilla 汉化将汉化包拷贝只bugzilla/template即可

         修改正确的汉化包地址:

         http://pan.baidu.com/share/link?shareid=3225677985&uk=537939425

 

至此bugzilla安装完毕,访问 http://127.0.0.1:8080/bugzilla。


 




下面这个问题,第一次出现过,第二次没有

Permission denied: exec of '/var/www/html/bugzilla/index.cgi' failed

[Thu Jun 06 15:20:04 2013] [error] [client 172.29.165.86] (13)Permission denied: exec of '/var/www/html/bugzilla/index.cgi' failed, referer: http://172.29.165.134/bugzilla/
[Thu Jun 06 15:20:04 2013] [error] [client 172.29.165.86] Premature end of script headers: index.cgi, referer: http://172.29.165.134/bugzilla/

解决方法:

[root@oracle html]# chcon -R -t httpd_sys_content_t /var/www/html/bugzilla/

OK~~~

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章