Bugzilla的部署问题
作为新人,最近公司要求部署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模块。其中只有两个模块没发现。如右图。不过不知道有没有影响,直接先被忽略了。
然后执行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>
按照上面的配置文件更改后,在内网和本机的浏览器后出现如右图,出现/bugzilla没有访问权限,查了网上许多资料说的都是关于/var/www/html/bugzilla目录权限问题,但是我已经给予了这样的权限,而且通过chown -R apache.apache /var/www/html/bugzilla更改文件夹所有者属性。最后问题还是没法解决,所以手打配置文件,希望论坛里的大虾帮忙看看,感激不尽啊!!!!! 跪求大虾指点啊!小弟也遇到这个问题了。 缺少了模块要及时加进去,要不然后面的问题可能是这一步造成的
说权限问题,你把权限改成777看一下 早上通过查看error_log得到如下问题,基本上可以将问题锁定在DirectoryIndex的索引了,但是不知道这个会不会涉及到SeLinux的问题? 希望多多指教! 回复 3# cryboy2001
但是在本机中用apache 这个组和用户,而且我也在bugzilla文件中执行 chown -R apache.apache bugzilla命令了,同时也将此权限赋予所有子目录了,另外我查询了下报错日志发现如下图,不知道是不是DirectoryIndex问题?
我觉得你可以写一个最简单的perl的cgi扔到apache里面,看看能访问到吗? centos很多访问权限都是selinux的问题
关闭之 用发行版自带的文档啊
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.
页:
[1]