免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3344 | 回复: 7

[Web] Bugzilla的部署问题 [复制链接]

论坛徽章:
0
发表于 2014-09-18 09:30 |显示全部楼层
     作为新人,最近公司要求部署Bugzilla以便研发人员提交bug,在部署Bugzilla时由于本人刚入Linux这行,而且公司也没有相关经验工程师,所以想咨询下论坛里面的前辈,还望指教。
     根据文档说明,主要安装Apache、mysql及对应的mysql开发工具包、bugzilla。
     按照顺序依次安装完相应的模块。
     本人将bugzilla安装在/var/www/html/bugzilla的目录下。并且通过chown -R apache.apache /var/www/html/bugzilla更改文件夹所有者属性。
    通过命令/var/www/html/bugzilla/checksetup.pl --check-modules检查bugziall依赖的perl模块。其中只有两个模块没发现。如右图 checksetup.jpg 。不过不知道有没有影响,直接先被忽略了。
   然后执行bugzilla安装目录下的./checksetup.pl  生成localconfig文件,同时在localconfig配置文件中配置对应的参数信息,这点本人已经确定没有问题。同时为Bugzilla建立数据库、用户和密码并授权。
   由于服务时部署在内网97上的,本人在/etc/httpd/conf/httpd.conf文件中修改apache配置文件内容如下:(注释部分我就不写了)
   #Section 1: Global Environment
  ServerTokens OS
  ServerRoot "etc/httpd"
  PidFile run/httpd.pid
  Timeout 120
  KeepAlive off
  MaxKeepAliveRequests 100
  KeepAliveTimeout 15
<IfModule prefork.c>
*********    其中具体参数配置就不详写了,已经确认测试出现的问题和这里的参数没关系
</IfModule>
<IfModule worker.c>
*******     理由同上
</IfModule>
Listen 80
LoadModule ************************************** 为加载模块 有N行可以排除与出现的问题不相关
Include conf.d/*.conf
User apache
Group apache
#Section 2: 'Main' Server configuration
ServerAdmin root@localhost
ServerName 192.168.3.97:80
UseCanonicalName off
DocumentRoot "/var/www/html"

<Directory "/var/www/html">
options Indexes FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
Options ExecCGI FollowSymLinks
AllowOverride Limit
</Directory>

<Directory "/var/www/html/bugzilla">
AddHandler cgi-script .cgi
Options + ExecCGI
DirectoryIndex index.cgi index.html
AllowOverride Limit FileInfo Indexes Options
</Directory>

<IfModule mod_userdir.c>
UserDir disable

</IfModule>
DirectoryIndex index.html index.html.var
AccessFileName .htaccess

<Files ~ "^\.ht">
   Order allow,deny
   Deny from all
</Files>

Typesconfig /etc/mime.types
DefaultType text/plain

<IfModule mod_mime_magic.c>
MIMEMagicFile conf/magic
</IfModule>

HostnameLookups off
ErrorLog logs/error_log
LogLevel warn
LogFormat ******************************* 已排除这些配置与出现的问题没有关系
CustomLog logs/access_log combined
ServerSignature on
Alias /icons/ "/var/www/icons/"

<Directory "/var/www/icons">
Options Indexes Multiviews
AllowOverride None
Order deny,allow
Allow from all
</Directory>

<IfModule mod_dav_fs.c>
DAVLockDB /var/lib/dav/lockdb
</IfModule>

ScriptAlias /cgi-bin/ "/var/www/cgi-bin"

<Directory "/var/www/cgi-bin">
AllowOverride None
Options None
Order deny,allow
Allow frome all
</Directory>

IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable
AddIconByType ************************** 以排除与出现的问题没有关系

DefautIcon /icons/unknown.gif

ReadmeName README.html

HeaderName HEADER.html

AddLanguage **   已排除与出现的问题没有关系

Alias /error/ "/var/www/error/"

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
  <Directory "/var/www/error">
     AllowOverride None
    Options IncludesNoExec
    AddOutputFilter Includes html
    AddHandler type-map var
    Order deny,allow
    Allow from all
</Directory>
</IfModule>
</IfModule>
     
#Section 3 : Virtual Hosts
<Directory /var/www/html/bugzilla>
AddHandler cgi-script .cgi
Options +ExecCGI
DirectoryIndex index,cgi index,html
AllowOverride Limit FileInfo Indexes Options
</Directory>  
     按照上面的配置文件更改后,在内网和本机的浏览器后出现如右图 Forbidden.jpg ,出现/bugzilla没有访问权限,查了网上许多资料说的都是关于/var/www/html/bugzilla目录权限问题,但是我已经给予了这样的权限,而且通过chown -R apache.apache /var/www/html/bugzilla更改文件夹所有者属性。最后问题还是没法解决,所以手打配置文件,希望论坛里的大虾帮忙看看,感激不尽啊!!!!!

论坛徽章:
0
发表于 2014-09-18 09:41 |显示全部楼层
跪求大虾指点啊!小弟也遇到这个问题了。

论坛徽章:
26
CU十二周年纪念徽章
日期:2013-10-24 15:41:34技术图书徽章
日期:2014-07-11 16:27:52辰龙
日期:2014-09-04 13:40:43白羊座
日期:2014-09-09 12:51:55双子座
日期:2014-09-26 11:00:042014年中国系统架构师大会
日期:2014-10-14 15:59:00子鼠
日期:2014-10-23 16:48:23巨蟹座
日期:2014-10-27 08:21:10申猴
日期:2014-12-08 10:16:282015年辞旧岁徽章
日期:2015-03-03 16:54:15NBA常规赛纪念章
日期:2015-05-04 22:32:03IT运维版块每日发帖之星
日期:2016-01-29 06:20:00
发表于 2014-09-18 11:16 |显示全部楼层
缺少了模块要及时加进去,要不然后面的问题可能是这一步造成的

说权限问题,你把权限改成777看一下

论坛徽章:
0
发表于 2014-09-18 11:18 |显示全部楼层
早上通过查看error_log得到如下问题 error_log.jpg ,基本上可以将问题锁定在DirectoryIndex的索引了,但是不知道这个会不会涉及到SeLinux的问题? 希望多多指教!

论坛徽章:
0
发表于 2014-09-18 11:24 |显示全部楼层
回复 3# cryboy2001
但是在本机中用apache 这个组和用户,而且我也在bugzilla文件中执行 chown -R apache.apache bugzilla命令了,同时也将此权限赋予所有子目录了,另外我查询了下报错日志发现如下图,不知道是不是DirectoryIndex问题?
error_log.jpg

   

论坛徽章:
0
发表于 2014-09-22 17:21 |显示全部楼层
我觉得你可以写一个最简单的perl的cgi扔到apache里面,看看能访问到吗?

论坛徽章:
223
2022北京冬奥会纪念版徽章
日期:2015-08-10 16:30:32操作系统版块每日发帖之星
日期:2016-05-10 19:22:58操作系统版块每日发帖之星
日期:2016-02-18 06:20:00操作系统版块每日发帖之星
日期:2016-03-01 06:20:00操作系统版块每日发帖之星
日期:2016-03-02 06:20:0015-16赛季CBA联赛之上海
日期:2019-09-20 12:29:3219周年集字徽章-周
日期:2019-10-01 20:47:4815-16赛季CBA联赛之八一
日期:2020-10-23 18:30:5320周年集字徽章-20	
日期:2020-10-28 14:14:2615-16赛季CBA联赛之广夏
日期:2023-02-25 16:26:26CU十四周年纪念徽章
日期:2023-04-13 12:23:10操作系统版块每日发帖之星
日期:2016-05-10 19:22:58
发表于 2014-09-24 23:12 |显示全部楼层
centos很多访问权限都是selinux的问题
关闭之

论坛徽章:
223
2022北京冬奥会纪念版徽章
日期:2015-08-10 16:30:32操作系统版块每日发帖之星
日期:2016-05-10 19:22:58操作系统版块每日发帖之星
日期:2016-02-18 06:20:00操作系统版块每日发帖之星
日期:2016-03-01 06:20:00操作系统版块每日发帖之星
日期:2016-03-02 06:20:0015-16赛季CBA联赛之上海
日期:2019-09-20 12:29:3219周年集字徽章-周
日期:2019-10-01 20:47:4815-16赛季CBA联赛之八一
日期:2020-10-23 18:30:5320周年集字徽章-20	
日期:2020-10-28 14:14:2615-16赛季CBA联赛之广夏
日期:2023-02-25 16:26:26CU十四周年纪念徽章
日期:2023-04-13 12:23:10操作系统版块每日发帖之星
日期:2016-05-10 19:22:58
发表于 2014-09-27 23:57 |显示全部楼层
用发行版自带的文档啊

Fedora / RHEL / CentOS

The vast majority of Bugzilla's prerequisites are available in RPM form either from the distro or from RPMForge. Instructions for setting up yum, apt, or up2date to download from RPMForge automatically are available at http://rpmforge.net/user/faq/. You may need to enable the rpmforge-extras repository to get all the packages you need.

Here's a yum command listing most of the required and optional dependencies of Bugzilla:

yum install httpd mysql-server mod_perl mod_perl-devel httpd-devel graphviz patchutils gcc perl-DateTime perl-Template-Toolkit perl-Email-Send perl-Email-MIME perl-GD perl-Chart perl-Template-GD perl-GDGraph perl-GDTextUtil perl-PatchReader perl-MIME-tools perl-LDAP perl-Authen-SASL perl-RadiusPerl perl-SOAP-Lite perl-JSON-RPC perl-JSON-XS perl-Test-Taint perl-HTML-Scrubber perl-Email-MIME-Attachment-Stripper perl-Email-Reply perl-TheSchwartz perl-Daemon-Generic perl-Math-Random-Secure perl-YAML perl-Class-Inspector

If you are running RHEL6, you will have to enable the "RHEL Server Optional" channel in RHN to get some of those packages.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP