当前位置:文档之家› 解决bugzilla与apache的链接界面问题

解决bugzilla与apache的链接界面问题

# or added with the Action directive (see below) #
# To use CGI scripts outside of ScriptAliased directories: # (You will also need to add "ExecCGI" to the "Options" directive.)
这里推荐使用 Apache 作为运行 Bugzilla 的 web 引擎 下载 Apache 2.x
下载 Apache HTTP Server version 2.x 或更高版本:
/download.cgi 安装
默认安装即可,假设安装的路径是 C:\Program Files\Apache Group 它将安装在 C:\Program Files\Apache Group\Apache2。
如果你已经运行了 IIS,你在安装时配置 apache 运行在不同于 80 端口,否则你将不能访问。 如果你的 windows 系统未安装 IIS 选择默认安装即可。 允许 Apache 可写 创建如下目录: • C:\Bugzilla\data • C:\Program Files\Apache Group\Apache2\logs • C:\Temp 配置 httpd.conf 文件
# for more information.
#
Options Indexes FollowSymLinks ExecCGI
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# #Listen 12.34.56.78:80
Listen 80 #
# DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but
在记事本中编辑 C:\Program Files\Apache Group\Apache2\conf\httpd.conf 将 httpd.conf 和以下相应的内容比较,对照蓝色字体内容修改原有的内容。
引用:
# # Listen: Allows you to bind Apache to specific IP addresses and/or
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# /docs-2.0/mod/core.html#options
AddType application/x-httpd-php .php AddHandler cgi-script .pl AddHandler cgi-script .cgi Options ExecCGI DirectoryIndex index.html AllowOverride none Order allow,deny Allow from all </Directory>
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
#
# Tell Apache to use Perl to execute .cgi
# Note that from this point forward you must specifically allow # particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it # below. # #
# or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
#
在注册表中创建
DirectoryIndex index.html index.html.var index.cgi
HKEY_CLASSES_ROOT\.cgi\Shell\ExecCGI\Command 编 辑 默 认 值 为 C:\Perl\bin\perl.exe -T # # The location and format of the access logfile (Common Logfile Format). # If you do not define any access logfiles within a <VirtualHost> # container, they will be logged here. Contrariwise, if you *do* # define per-<VirtualHost> access logfiles, transactions will be # logged therein and *not* in this file. # #CustomLog logs/access.log common 重新启动 Apache 最后,在命令行中重新启动 Apache。
在配置文件中添加: AddHandler cgi-script .pl AddHandler cgi-script .cgi
apache 下 logs 目录里的 error.log,里面显示的错误是:(OS 2)系统找不到指定的文件。 : couldn't create child process: 720002: index.cgi,(OS 2)系统找不到指定的文件。 :
couldn't spawn child process: C:/bugzilla/index.cgi。
解决方法 2、把 index.cgi 的第一行 #!/usr/bin/perl -WT 改成 #!/usr/bin/perl 遇到问题先 Google 看看有This should be changed to whatever you set DocumentRoot to. #
<Directory "C:/Bugzilla"> #
# AddHandler allows you to map certain file extensions to "handlers": # actions unrelated to filetype. These can be either built into the server
# directory (and its subdirectories). #
# First, we configure the "default" to be a very restrictive set of # features. # <Directory />
Options FollowSymLinks AllowOverride None </Directory> #
# symbolic links and aliases may be used to point to other locations. #
DocumentRoot "C:/Bugzilla" #
# Each directory to which Apache has access can be configured with respect # to which services and features are allowed and/or disabled in that
# AddHandler cgi-script .cgi
# # This should be changed to whatever you set DocumentRoot to.
# <Directory "C:/Bugzilla">
# # Possible values for the Options directive are "None", "All",
# ports, instead of the default. See also the <VirtualHost> # directive. #
# Change this to Listen on specific IP addresses as shown below to # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
解决 bugzilla 与 apache 的链接问题
安装 bugzilla 后界面会只有源代码,以下有一些方法,希望有用(在 apache 做 web 引擎情 况下) 解决方法 1、 在 http.conf 文件中,加红色的两行 Alias /test "/var/www/html/bugzilla" <Directory "/var/www/html/bugzilla">
相关主题