3

我想在我的 linux 服务器上安装 Bugzilla。安装成功,但出现以下错误:

TEST-FAILED Web 服务器未执行 CGI 文件

如何解决这个问题?

4

3 回答 3

2

Bugzilla 配置指南

2.2.4.1。阿帕奇 httpd

要配置您的 Apache Web 服务器以使用 Bugzilla,请执行以下操作:

  1. 在编辑器中加载 httpd.conf。在 Fedora 和 Red Hat Linux 中,该文件位于 /etc/httpd/conf 中。
  2. Apache 使用指令来允许细粒度的权限设置。将以下行添加到适用于 Bugzilla 安装位置的指令。(如果这样的部分不存在,您需要添加一个。)在此示例中,Bugzilla 已安装在 /var/www/html/bugzilla。

检查这个:

<Directory /var/www/html/bugzilla>
   AddHandler cgi-script .cgi
   Options +Indexes +ExecCGI
   DirectoryIndex index.cgi
   AllowOverride Limit
</Directory>

这些指令允许 Apache 运行在 bugzilla 目录中找到的 .cgi 文件;如果有人只在浏览器中键入目录名称,则指示服务器查找名为 index.cgi 的文件;并允许 Bugzilla 的 .htaccess 文件覆盖全局权限。

于 2009-01-21T13:16:57.060 回答
1

将 SELinux 设置更改为许可对我有用。

在 Fedora Core 和 RedHat Enterprise 中,编辑 /etc/selinux/config,您将看到如下几行:

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of these two values:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted

...只需更改SELINUX=enforcingSELINUX=permissive,您就完成了。

于 2011-05-06T19:41:04.607 回答
-2

您可以尝试阅读Apache 文档,它应该包含您需要的所有内容。

于 2009-01-21T13:09:48.917 回答