yali 发表于 2010-9-13 14:50:04

安装bugzilla时遇到的问题,http://localhost/链接错误

最近安装bugzilla,出现以下问题
在地址栏输入“http://localhost/index.cgi”后,显示以下信息,不知道为什么
大家帮我看看,谢谢啦~
我用apache+mysql+perl


——————————————————
#!F:/perl/bin/perl -WT
# -*- Mode: perl; indent-tabs-mode: nil -*-
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Bugzilla Bug Tracking System.
#
# The Initial Developer of the Original Code is Netscape Communications
# Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s): Jacob Steenhagen <jake@bugzilla.org>
#               Fr茅d茅ric Buclin <LpSolit@gmail.com>

###############################################################################
# Script Initialization
###############################################################################

# Make it harder for us to do dangerous things in Perl.
use strict;

# Include the Bugzilla CGI and general utility library.
use lib qw(. lib);

use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Update;

# Check whether or not the user is logged in
my $user = Bugzilla->login(LOGIN_OPTIONAL);
my $cgi = Bugzilla->cgi;
my $template = Bugzilla->template;
my $vars = {};

# And log out the user if requested. We do this first so that nothing
# else accidentally relies on the current login.
if ($cgi->param('logout')) {
    Bugzilla->logout();
    $user = Bugzilla->user;
    $vars->{'message'} = "logged_out";
    # Make sure that templates or other code doesn't get confused about this.
    $cgi->delete('logout');
}

###############################################################################
# Main Body Execution
###############################################################################

# Return the appropriate HTTP response headers.
print $cgi->header();

if ($user->in_group('admin')) {
    # If 'urlbase' is not set, display the Welcome page.
    unless (Bugzilla->params->{'urlbase'}) {
      $template->process('welcome-admin.html.tmpl')
          || ThrowTemplateError($template->error());
      exit;
    }
    # Inform the administrator about new releases, if any.
    $vars->{'release'} = Bugzilla::Update::get_notifications();
}

# Generate and return the UI (HTML page) from the appropriate template.
$template->process("index.html.tmpl", $vars)
|| ThrowTemplateError($template->error());

yali 发表于 2010-9-13 15:18:02

:(没有人知道为什么么~~~~~

chengmoys 发表于 2010-9-13 15:20:25

你是在什么平台上,怎么样安装的?

chengmoys 发表于 2010-9-13 15:22:26

http://localhost/index.cgi

你是想测试web服务器是否安装好,还是想测试是否web服务器现在是否支持cgi吗?

yali 发表于 2010-9-13 15:37:32

windows上安装的
输入“http://localhost/”后他自动连接到http://localhost/index.cgi

就是按照各种安装文件一步步安装的呀~

chengmoys 发表于 2010-9-14 14:52:02

windows平台上我没安装过,linux我安装过。你最好对照官方的英文文档安装,我个人感觉要么你的web服务器的配置文档有问题。

serm 发表于 2010-9-17 22:56:02

嘿嘿 cgi没有配建议需要在apach的配置文件里面加EXEC cgi.具体的百度一下:lol
页: [1]
查看完整版本: 安装bugzilla时遇到的问题,http://localhost/链接错误