Apache
這里推薦使用Apache 作為運(yùn)行Bugzilla 的web引擎。如果你想將Bugzilla 運(yùn)行在IIS上,可以參考:http://www.bugzilla.org/docs/2.18/html/configuration.html#http-iis
下載 Apache 2.x
下載Apache HTTP Server version 2.x 或更高版本:http://httpd.apache.org/download.cgi
安裝
默認(rèn)安裝即可,假設(shè)安裝的路徑是C:Program FilesApache Group 它將安裝在C:Program FilesApache GroupApache2。
如果你已經(jīng)運(yùn)行了IIS,你在安裝時(shí)配置apache運(yùn)行在不同于80端口,否則你將不能訪問。如果你的windows系統(tǒng)未安裝IIS選擇默認(rèn)安裝即可。
允許Apache 可寫
創(chuàng)建如下目錄:
• C:Bugzilladata
• C:Program FilesApache GroupApache2logs
• C:Temp
配置httpd.conf文件
在記事本中編輯 C:Program FilesApache GroupApache2confhttpd.conf
將httpd.conf和以下相應(yīng)的內(nèi)容比較,對照藍(lán)色字體內(nèi)容修改原有的內(nèi)容。
#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# 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)
#
#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
# 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
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
#
# 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.
#
#
# 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
# 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.)
#
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",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
#http://httpd.apache.org/docs-2.0/mod/core.html#options
# 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:
# 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
#
ScriptInterpreterSource Registry-Strict
</Directory>
You also should add index.cgi to the DirectoryIndex list.
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents. The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var index.cgi
在注冊表中創(chuàng)建
HKEY_CLASSES_ROOT.cgiShellExecCGICommand 編輯默認(rèn)值為C:Perlinperl.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。
C:>net stop apache2
The Apache2 service is stopping..
The Apache2 service was stopped successfully.
C:>net start apache2
The Apache2 service is starting.
The Apache2 service was started successfully.
C:>