- 论坛徽章:
- 0
|
作为新人,最近公司要求部署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更改文件夹所有者属性。最后问题还是没法解决,所以手打配置文件,希望论坛里的大虾帮忙看看,感激不尽啊!!!!! |
|